mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-17 04:18:06 +00:00
Add AFL_FORK_SERVER_KILL_SIGNAL environment variable.
The AFL_FORK_SERVER_KILL_SIGNAL variable allows to configure the signal used to kill the fork server on termination.
This commit is contained in:
@ -866,6 +866,8 @@ static void usage(u8 *argv0) {
|
||||
"startup (in milliseconds)\n"
|
||||
"AFL_KILL_SIGNAL: Signal ID delivered to child processes on timeout, "
|
||||
"etc. (default: SIGKILL)\n"
|
||||
"AFL_FORK_SERVER_KILL_SIGNAL: Signal delivered to fork server processes on termination"
|
||||
" (default: SIGTERM)\n"
|
||||
"AFL_MAP_SIZE: the shared memory size for that target. must be >= the "
|
||||
"size the target was compiled for\n"
|
||||
"AFL_PRELOAD: LD_PRELOAD / DYLD_INSERT_LIBRARIES settings for target\n"
|
||||
@ -1259,7 +1261,9 @@ int main(int argc, char **argv_orig, char **envp) {
|
||||
be_quiet = save_be_quiet;
|
||||
|
||||
fsrv->child_kill_signal =
|
||||
parse_afl_kill_signal_env(getenv("AFL_KILL_SIGNAL"), SIGKILL);
|
||||
parse_afl_kill_signal(getenv("AFL_KILL_SIGNAL"), SIGKILL);
|
||||
fsrv->fsrv_kill_signal =
|
||||
parse_afl_kill_signal(getenv("AFL_FORK_SERVER_KILL_SIGNAL"), SIGTERM);
|
||||
|
||||
if (new_map_size) {
|
||||
|
||||
|
Reference in New Issue
Block a user