This commit is contained in:
vanhauser-thc
2022-01-25 13:32:45 +01:00
parent 28a1765781
commit 0fd6315dfb

View File

@ -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);
}