diff options
author | van Hauser <vh@thc.org> | 2022-01-26 11:00:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-26 11:00:55 +0100 |
commit | 143c9d175e9357ba548413ee7dcee6a8de23f733 (patch) | |
tree | a82736c060150480df81d19b50dfb7939cda7524 /instrumentation/afl-compiler-rt.o.c | |
parent | a790bf6cc2bb63f0659d8c96b46f5f4db2f9d4bc (diff) | |
parent | b0758ac8db0a2ec833b5ef7a60ab2d04cc7f6a9a (diff) | |
download | afl++-143c9d175e9357ba548413ee7dcee6a8de23f733.tar.gz |
Merge pull request #1301 from AFLplusplus/dev 4.00c
v4.00c release
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); } |