mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-20 05:23:43 +00:00
AFL_I_AM_THE_FORKSERVER becomes AFL_FORKSERVER_PARENT
This commit is contained in:
@ -1046,7 +1046,7 @@ static void __afl_start_forkserver(void) {
|
|||||||
/* In child process: close fds, resume execution. */
|
/* In child process: close fds, resume execution. */
|
||||||
|
|
||||||
if (unlikely(!child_pid)) { // just to signal afl-fuzz faster
|
if (unlikely(!child_pid)) { // just to signal afl-fuzz faster
|
||||||
unsetenv("AFL_I_AM_THE_FORKSERVER");
|
unsetenv("AFL_FORKSERVER_PARENT");
|
||||||
|
|
||||||
//(void)nice(-20);
|
//(void)nice(-20);
|
||||||
|
|
||||||
|
@ -878,7 +878,7 @@ void afl_fsrv_start(afl_forkserver_t *fsrv, char **argv,
|
|||||||
|
|
||||||
/* CHILD PROCESS */
|
/* CHILD PROCESS */
|
||||||
|
|
||||||
setenv("AFL_I_AM_THE_FORKSERVER", "1", 0);
|
setenv("AFL_FORKSERVER_PARENT", "1", 0);
|
||||||
|
|
||||||
// enable terminating on sigpipe in the children
|
// enable terminating on sigpipe in the children
|
||||||
struct sigaction sa;
|
struct sigaction sa;
|
||||||
|
Reference in New Issue
Block a user