This commit is contained in:
vanhauser-thc
2024-06-09 12:16:32 +02:00
parent 5331eca5d9
commit 4bb4d4ad00
3 changed files with 11 additions and 8 deletions

View File

@ -769,8 +769,9 @@ void afl_states_stop(void) {
if (el->fsrv.fsrv_pid > 0) {
kill(el->fsrv.fsrv_pid, el->fsrv.fsrv_kill_signal);
usleep(100);
/* Make sure the forkserver does not end up as zombie. */
waitpid(el->fsrv.fsrv_pid, NULL, 0);
waitpid(el->fsrv.fsrv_pid, NULL, WNOHANG);
}