diff options
author | vanhauser-thc <vh@thc.org> | 2021-11-18 22:31:19 +0100 |
---|---|---|
committer | vanhauser-thc <vh@thc.org> | 2021-11-18 22:31:19 +0100 |
commit | 7c3d4e54eb5346995c492de289d8d8b4838f6576 (patch) | |
tree | bcd20b316b44f1d70e14674f45469bd983c6166d | |
parent | e131d0fc55ddc34e2a59c13b3bb24f4bc559301b (diff) | |
download | afl++-7c3d4e54eb5346995c492de289d8d8b4838f6576.tar.gz |
ensure default sigchild handler in afl-compiler-rt
-rw-r--r-- | instrumentation/afl-compiler-rt.o.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/instrumentation/afl-compiler-rt.o.c b/instrumentation/afl-compiler-rt.o.c index 3489c7f8..2bfa8b7d 100644 --- a/instrumentation/afl-compiler-rt.o.c +++ b/instrumentation/afl-compiler-rt.o.c @@ -670,7 +670,8 @@ static void __afl_start_snapshots(void) { u8 child_stopped = 0; - void (*old_sigchld_handler)(int) = 0; // = signal(SIGCHLD, SIG_DFL); + signal(SIGCHLD, SIG_DFL); + void (*old_sigchld_handler)(int) = 0; /* Phone home and tell the parent that we're OK. If parent isn't there, assume we're not running in forkserver mode and just execute program. */ @@ -926,7 +927,8 @@ static void __afl_start_forkserver(void) { u8 child_stopped = 0; - void (*old_sigchld_handler)(int) = 0; // = signal(SIGCHLD, SIG_DFL); + signal(SIGCHLD, SIG_DFL); + void (*old_sigchld_handler)(int) = 0; if (__afl_map_size <= FS_OPT_MAX_MAPSIZE) { |