diff options
Diffstat (limited to 'instrumentation/afl-compiler-rt.o.c')
-rw-r--r-- | instrumentation/afl-compiler-rt.o.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/instrumentation/afl-compiler-rt.o.c b/instrumentation/afl-compiler-rt.o.c index a84f31e3..59839750 100644 --- a/instrumentation/afl-compiler-rt.o.c +++ b/instrumentation/afl-compiler-rt.o.c @@ -154,7 +154,14 @@ static int __afl_dummy_fd[2] = {2, 2}; static void at_exit(int signal) { - if (child_pid > 0) { kill(child_pid, SIGKILL); } + if (unlikely(child_pid > 0)) { + + kill(child_pid, SIGKILL); + child_pid = -1; + + } + + _exit(0); } |