about summary refs log tree commit diff
path: root/llvm_mode/afl-llvm-rt.o.c
diff options
context:
space:
mode:
authorAndrea Fioraldi <andreafioraldi@gmail.com>2020-01-30 22:54:23 +0100
committerGitHub <noreply@github.com>2020-01-30 22:54:23 +0100
commit19ebdf31b999223e4965f701077f9af9d550e386 (patch)
tree9c6d27d58d0606d59725ef46766eb1961e908d31 /llvm_mode/afl-llvm-rt.o.c
parentb050c1158398dd07e25a6cd65234da84e5656fa6 (diff)
parent6e9fce1c2d654c92dbf8e6b8cc21a88d8cba9496 (diff)
downloadafl++-19ebdf31b999223e4965f701077f9af9d550e386.tar.gz
Merge pull request #178 from vanhauser-thc/CmpLog
Cmp log
Diffstat (limited to 'llvm_mode/afl-llvm-rt.o.c')
-rw-r--r--llvm_mode/afl-llvm-rt.o.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm_mode/afl-llvm-rt.o.c b/llvm_mode/afl-llvm-rt.o.c
index a5602501..9632844f 100644
--- a/llvm_mode/afl-llvm-rt.o.c
+++ b/llvm_mode/afl-llvm-rt.o.c
@@ -25,6 +25,7 @@
 #endif
 #include "config.h"
 #include "types.h"
+#include "cmplog.h"
 
 #include <stdio.h>
 #include <stdlib.h>
@@ -32,6 +33,7 @@
 #include <unistd.h>
 #include <string.h>
 #include <assert.h>
+#include <stdint.h>
 
 #include <sys/mman.h>
 #include <sys/shm.h>
@@ -135,7 +137,7 @@ static void __afl_start_forkserver(void) {
 
   u8 child_stopped = 0;
 
-  void (*old_sigchld_handler)(int) = signal(SIGCHLD, SIG_DFL);
+  void (*old_sigchld_handler)(int) = 0;  // = signal(SIGCHLD, SIG_DFL);
 
   /* 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. */