diff options
author | van Hauser <vh@thc.org> | 2024-06-09 19:09:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-09 19:09:17 +0200 |
commit | 9f6b012fbfc8b79dda83e73a208e429aaf25e7ee (patch) | |
tree | 7f729cd9133553252979386a910c4072e59293d9 /src/afl-fuzz-state.c | |
parent | fd713413e85a45a18c51712f55d5742356f00730 (diff) | |
parent | ec0b83f127702fe23da72f4d424bc13a5bacfae9 (diff) | |
download | afl++-9f6b012fbfc8b79dda83e73a208e429aaf25e7ee.tar.gz |
Merge pull request #2117 from AFLplusplus/dev v4.21c
push to stable
Diffstat (limited to 'src/afl-fuzz-state.c')
-rw-r--r-- | src/afl-fuzz-state.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/afl-fuzz-state.c b/src/afl-fuzz-state.c index 333d57b2..fbe6d32a 100644 --- a/src/afl-fuzz-state.c +++ b/src/afl-fuzz-state.c @@ -279,6 +279,13 @@ void read_afl_environment(afl_state_t *afl, char **envp) { afl->afl_env.afl_final_sync = get_afl_env(afl_environment_variables[i]) ? 1 : 0; + } else if (!strncmp(env, "AFL_NO_SYNC", + + afl_environment_variable_len)) { + + afl->afl_env.afl_no_sync = + get_afl_env(afl_environment_variables[i]) ? 1 : 0; + } else if (!strncmp(env, "AFL_CUSTOM_MUTATOR_ONLY", afl_environment_variable_len)) { @@ -762,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); } |