diff options
author | Robert Swiecki <robert@swiecki.net> | 2017-12-18 01:10:33 +0100 |
---|---|---|
committer | Robert Swiecki <robert@swiecki.net> | 2017-12-18 01:10:33 +0100 |
commit | 371e129f49882d455d412d5e7edd9317f1a3c32d (patch) | |
tree | 6cc80dc8e3ca0d0bcaa5d4f0d414c3c2cea96797 /mac | |
parent | 97d0ceeeaed6c706ae893235c089ceabaa69ff9f (diff) | |
download | honggfuzz-371e129f49882d455d412d5e7edd9317f1a3c32d.tar.gz |
honggfuzz.h: move some fields into timing subfield
Diffstat (limited to 'mac')
-rw-r--r-- | mac/arch.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -124,7 +124,7 @@ __attribute__((constructor)) void arch_initSigs(void) { arch_sigs[SIGABRT].important = true; arch_sigs[SIGABRT].descr = "SIGABRT"; - /* Is affected from tmout_vtalrm flag */ + /* Is affected from tmoutVTAlarm flag */ arch_sigs[SIGVTALRM].important = false; arch_sigs[SIGVTALRM].descr = "SIGVTALRM"; } @@ -368,14 +368,14 @@ void arch_reapChild(run_t* run) { * Now check for signals using wait4 */ int options = WUNTRACED; - if (run->global->tmOut) { + if (run->global->timing.tmOut) { options |= WNOHANG; } for (;;) { int status = 0; while (wait4(run->pid, &status, options, NULL) != run->pid) { - if (run->global->tmOut) { + if (run->global->timin.tmOut) { subproc_checkTimeLimit(run); usleep(0.20 * 1000000); } @@ -464,7 +464,7 @@ bool arch_archInit(honggfuzz_t* hfuzz) { arch_sigs[SIGABRT].important = hfuzz->monitorSIGABRT; /* Default is false */ - arch_sigs[SIGVTALRM].important = hfuzz->tmout_vtalrm; + arch_sigs[SIGVTALRM].important = hfuzz->tmoutVTAlarm; return true; } |