mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-17 12:18:08 +00:00
no more waitpid warning
This commit is contained in:
@ -631,8 +631,12 @@ void afl_fsrv_start(afl_forkserver_t *fsrv, char **argv,
|
||||
static void afl_fsrv_kill(afl_forkserver_t *fsrv) {
|
||||
|
||||
if (fsrv->child_pid > 0) kill(fsrv->child_pid, SIGKILL);
|
||||
if (fsrv->fsrv_pid > 0) kill(fsrv->fsrv_pid, SIGKILL);
|
||||
if (waitpid(fsrv->fsrv_pid, NULL, 0) <= 0) { WARNF("error waitpid\n"); }
|
||||
if (fsrv->fsrv_pid > 0) {
|
||||
|
||||
kill(fsrv->fsrv_pid, SIGKILL);
|
||||
if (waitpid(fsrv->fsrv_pid, NULL, 0) <= 0) { WARNF("error waitpid\n"); }
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
@ -59,9 +59,9 @@
|
||||
#include <sys/types.h>
|
||||
#include <sys/resource.h>
|
||||
|
||||
static char *stdin_file; /* stdin file */
|
||||
static char *stdin_file; /* stdin file */
|
||||
|
||||
static u8 *in_dir, /* input folder */
|
||||
static u8 *in_dir, /* input folder */
|
||||
*at_file = NULL; /* Substitution string for @@ */
|
||||
|
||||
static u8 *in_data; /* Input data */
|
||||
@ -71,7 +71,7 @@ static u32 total, highest; /* tuple content information */
|
||||
static u32 in_len, /* Input data length */
|
||||
arg_offset, total_execs; /* Total number of execs */
|
||||
|
||||
static u8 quiet_mode, /* Hide non-essential messages? */
|
||||
static u8 quiet_mode, /* Hide non-essential messages? */
|
||||
edges_only, /* Ignore hit counts? */
|
||||
raw_instr_output, /* Do not apply AFL filters */
|
||||
cmin_mode, /* Generate output in afl-cmin mode? */
|
||||
|
@ -60,7 +60,7 @@
|
||||
|
||||
static u8 *mask_bitmap; /* Mask for trace bits (-B) */
|
||||
|
||||
static u8 *in_file, /* Minimizer input test case */
|
||||
static u8 *in_file, /* Minimizer input test case */
|
||||
*output_file; /* Minimizer output file */
|
||||
|
||||
static u8 *in_data; /* Input data for trimming */
|
||||
@ -72,7 +72,7 @@ static u32 in_len, /* Input data length */
|
||||
missed_crashes, /* Misses due to crashes */
|
||||
missed_paths; /* Misses due to exec path diffs */
|
||||
|
||||
static u8 crash_mode, /* Crash-centric mode? */
|
||||
static u8 crash_mode, /* Crash-centric mode? */
|
||||
hang_mode, /* Minimize as long as it hangs */
|
||||
exit_crash, /* Treat non-zero exit as crash? */
|
||||
edges_only, /* Ignore hit counts? */
|
||||
|
Reference in New Issue
Block a user