aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNils Bars <nils.bars@rub.de>2022-10-24 17:52:04 +0200
committerNils Bars <nils.bars@rub.de>2022-10-24 17:54:03 +0200
commit102b749c0734165f1cb121397e4a4c307666b8eb (patch)
treed2a090fa114ede2091e752d3116ba8742f3dbcbb /include
parent7512316b46a25180729ff8c568a6061a0ab19fea (diff)
downloadAFLplusplus-102b749c0734165f1cb121397e4a4c307666b8eb.tar.gz
AFL_FORK_SERVER_KILL_SIGNAL backwards compatiblity
If `AFL_KILL_SIGNAL` is set, `AFL_FORK_SERVER_KILL_SIGNAL` is set to the same value.
Diffstat (limited to 'include')
-rw-r--r--include/common.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/common.h b/include/common.h
index 34732197..c1ba0f20 100644
--- a/include/common.h
+++ b/include/common.h
@@ -32,6 +32,7 @@
#include <unistd.h>
#include <sys/time.h>
#include <stdbool.h>
+#include "forkserver.h"
#include "types.h"
/* STRINGIFY_VAL_SIZE_MAX will fit all stringify_ strings. */
@@ -73,6 +74,11 @@ u8 *find_afl_binary(u8 *own_loc, u8 *fname);
FATALs if `numeric_signal_as_str` is not a valid integer .*/
int parse_afl_kill_signal(u8 *numeric_signal_as_str, int default_signal);
+/* Configure the signals that are used to kill the forkserver
+ and the forked childs. If `afl_kill_signal_env` or `afl_fsrv_kill_signal_env`
+ is NULL, the appropiate values are read from the environment. */
+void configure_afl_kill_signals(afl_forkserver_t *fsrv, char* afl_kill_signal_env, char* afl_fsrv_kill_signal_env);
+
/* Read a bitmap from file fname to memory
This is for the -B option again. */