diff options
author | Nils Bars <nils.bars@rub.de> | 2022-10-20 13:14:29 +0200 |
---|---|---|
committer | Nils Bars <nils.bars@rub.de> | 2022-10-20 18:08:07 +0200 |
commit | f84ea696606b3dd6ae40006e5efb9f178651e916 (patch) | |
tree | 3989c18c5f2705925d012b1ca4a6bd3bfa9f2c83 /include | |
parent | 5ccf38941472bda9415d14edc4ecefaa43c79d67 (diff) | |
download | afl++-f84ea696606b3dd6ae40006e5efb9f178651e916.tar.gz |
Fix child reaping on fuzzer termination
This commit contains the following changes: - Call `waitpid()` on the child and the fork server when terminating the fuzzer; thus, we do not end up with zombies. - Rename `fsrv.kill_signal` to `fsrv.child_kill_signal`, since the documentation states that the signal is used to terminate the *child*. - Use SIGTERM instead of fsrv.(child)_kill_signal, thus the fork server can always reap the child.
Diffstat (limited to 'include')
-rw-r--r-- | include/forkserver.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/forkserver.h b/include/forkserver.h index 59ce0ee7..59624194 100644 --- a/include/forkserver.h +++ b/include/forkserver.h @@ -163,7 +163,7 @@ typedef struct afl_forkserver { void (*add_extra_func)(void *afl_ptr, u8 *mem, u32 len); - u8 kill_signal; + u8 child_kill_signal; u8 persistent_mode; #ifdef __linux__ @@ -222,4 +222,3 @@ void afl_fsrv_kill(afl_forkserver_t *fsrv); #endif /* ^RLIMIT_AS */ #endif - |