aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2022-01-25 13:32:45 +0100
committervanhauser-thc <vh@thc.org>2022-01-25 13:32:45 +0100
commit0fd6315dfb45dcc058dcf891efb8fb83eb1de225 (patch)
treeabbb86818a83dae7b9483bd07d3df3f310623047
parent28a176578172a572a03dfcbebf6479e3dcf69944 (diff)
downloadafl++-0fd6315dfb45dcc058dcf891efb8fb83eb1de225.tar.gz
nit
-rw-r--r--instrumentation/afl-compiler-rt.o.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/instrumentation/afl-compiler-rt.o.c b/instrumentation/afl-compiler-rt.o.c
index af8c3218..59839750 100644
--- a/instrumentation/afl-compiler-rt.o.c
+++ b/instrumentation/afl-compiler-rt.o.c
@@ -154,7 +154,13 @@ 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);
}