about summary refs log tree commit diff
path: root/include/common.h
diff options
context:
space:
mode:
authorNils Bars <nils.bars@rub.de>2022-10-21 12:13:43 +0200
committerNils Bars <nils.bars@rub.de>2022-10-21 12:47:00 +0200
commit7512316b46a25180729ff8c568a6061a0ab19fea (patch)
tree81db6020d1d6e1c8d8f050fe647a25c79f1dd37d /include/common.h
parentf84ea696606b3dd6ae40006e5efb9f178651e916 (diff)
downloadafl++-7512316b46a25180729ff8c568a6061a0ab19fea.tar.gz
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.
Diffstat (limited to 'include/common.h')
-rw-r--r--include/common.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/common.h b/include/common.h
index a983bb0e..34732197 100644
--- a/include/common.h
+++ b/include/common.h
@@ -67,10 +67,11 @@ u8 *find_binary(u8 *fname);
 
 u8 *find_afl_binary(u8 *own_loc, u8 *fname);
 
-/* Parses the kill signal environment variable, FATALs on error.
-  If the env is not set, sets the env to default_signal for the signal handlers
-  and returns the default_signal. */
-int parse_afl_kill_signal_env(u8 *afl_kill_signal_env, int default_signal);
+/* Parses the (numeric) kill signal environment variable passed
+   via `numeric_signal_as_str`.
+   If NULL is passed, the `default_signal` value is returned.
+   FATALs if `numeric_signal_as_str` is not a valid integer .*/
+int parse_afl_kill_signal(u8 *numeric_signal_as_str, int default_signal);
 
 /* Read a bitmap from file fname to memory
    This is for the -B option again. */
@@ -133,4 +134,3 @@ FILE *create_ffile(u8 *fn);
 s32 create_file(u8 *fn);
 
 #endif
-