From defd0a4d823c8e2b39f39d2e383aa5ff475f1c96 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 30 May 2020 23:57:19 +0200 Subject: Work around valgrind issue MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- sctrace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3-70-g09d2