aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2020-05-30 23:57:19 +0200
committerMattias Andrée <maandree@kth.se>2020-05-30 23:57:19 +0200
commitdefd0a4d823c8e2b39f39d2e383aa5ff475f1c96 (patch)
tree2fdd5283bc54fe447aa44acba385c67279a865f1
parentAdd support for tracing threads (diff)
downloadsctrace-defd0a4d823c8e2b39f39d2e383aa5ff475f1c96.tar.gz
sctrace-defd0a4d823c8e2b39f39d2e383aa5ff475f1c96.tar.bz2
sctrace-defd0a4d823c8e2b39f39d2e383aa5ff475f1c96.tar.xz
Work around valgrind issue
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r--sctrace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sctrace.c b/sctrace.c
index 65216a5..970d6c4 100644
--- a/sctrace.c
+++ b/sctrace.c
@@ -145,7 +145,7 @@ main(int argc, char **argv)
}
/* exec will block until parent attaches */
execvp(*argv, &argv[with_argv0]);
- /* TODO on failure, why does it get into a SIGSEGV loop under valgrind? */
+ kill(getppid(), SIGKILL);
eprintf("execvp %s:", *argv);
default:
orig_pid = pid;