mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-13 10:38:07 +00:00
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.
This commit is contained in:
@ -1358,7 +1358,7 @@ int main(int argc, char **argv_orig, char **envp) {
|
||||
|
||||
#endif
|
||||
|
||||
afl->fsrv.kill_signal =
|
||||
afl->fsrv.child_kill_signal =
|
||||
parse_afl_kill_signal_env(afl->afl_env.afl_kill_signal, SIGKILL);
|
||||
|
||||
setup_signal_handlers();
|
||||
@ -2683,4 +2683,3 @@ stop_fuzzing:
|
||||
}
|
||||
|
||||
#endif /* !AFL_LIB */
|
||||
|
||||
|
Reference in New Issue
Block a user