about summary refs log tree commit diff
path: root/src/afl-tmin.c
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2022-10-24 20:46:31 +0200
committerGitHub <noreply@github.com>2022-10-24 20:46:31 +0200
commita075cddef6ae71516a960116f3d944efd5671e5d (patch)
tree724dd6978ebb10f52c4bdda86eb44a5494b33409 /src/afl-tmin.c
parentd1e1bbc713b22d620956143634ecdf97223aa59f (diff)
parent05e0825d66d938308842c25c4c74b5cdd4a885eb (diff)
downloadafl++-a075cddef6ae71516a960116f3d944efd5671e5d.tar.gz
Merge pull request #1561 from AFLplusplus/dev
push to stable
Diffstat (limited to 'src/afl-tmin.c')
-rw-r--r--src/afl-tmin.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/afl-tmin.c b/src/afl-tmin.c
index 694c9c21..3a27b879 100644
--- a/src/afl-tmin.c
+++ b/src/afl-tmin.c
@@ -113,7 +113,7 @@ static void kill_child() {
 
   if (fsrv->child_pid > 0) {
 
-    kill(fsrv->child_pid, fsrv->kill_signal);
+    kill(fsrv->child_pid, fsrv->child_kill_signal);
     fsrv->child_pid = -1;
 
   }
@@ -881,6 +881,9 @@ static void usage(u8 *argv0) {
       "AFL_CRASH_EXITCODE: optional child exit code to be interpreted as crash\n"
       "AFL_FORKSRV_INIT_TMOUT: time spent waiting for forkserver during 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\n"
+      "                             (default: SIGTERM). If this is not set and AFL_KILL_SIGNAL is set,\n"
+      "                             this will be set to the same value as AFL_KILL_SIGNAL.\n"
       "AFL_MAP_SIZE: the shared memory size for that target. must be >= the size\n"
       "              the target was compiled for\n"
       "AFL_PRELOAD:  LD_PRELOAD / DYLD_INSERT_LIBRARIES settings for target\n"
@@ -1195,8 +1198,7 @@ int main(int argc, char **argv_orig, char **envp) {
 
   }
 
-  fsrv->kill_signal =
-      parse_afl_kill_signal_env(getenv("AFL_KILL_SIGNAL"), SIGKILL);
+  configure_afl_kill_signals(fsrv, NULL, NULL);
 
   if (getenv("AFL_CRASH_EXITCODE")) {