summaryrefslogtreecommitdiff
path: root/posix
diff options
context:
space:
mode:
authorRobert Swiecki <robert@swiecki.net>2017-02-25 22:47:55 +0100
committerRobert Swiecki <robert@swiecki.net>2017-02-25 22:47:55 +0100
commit4f09ce0bf17df0f70608a199b8b24bdf2ccf9442 (patch)
tree1863d078820c5626f3550704b9944061eee980c9 /posix
parent50370a5eef11c8acb12581273150ae1c4d9627fa (diff)
downloadhonggfuzz-4f09ce0bf17df0f70608a199b8b24bdf2ccf9442.tar.gz
kill the subprocess upon termination of threads
Diffstat (limited to 'posix')
-rw-r--r--posix/arch.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/posix/arch.c b/posix/arch.c
index 71b49f3c..f169edef 100644
--- a/posix/arch.c
+++ b/posix/arch.c
@@ -197,6 +197,7 @@ void arch_reapChild(honggfuzz_t * hfuzz, fuzzer_t * fuzzer)
int r = poll(&pfd, 1, -1);
if (r == -1 && errno == EINTR) {
subproc_checkTimeLimit(hfuzz, fuzzer);
+ subproc_checkTermination(hfuzz, fuzzer);
}
if (r == -1 && errno != EINTR) {
PLOG_F("poll(fd=%d)", fuzzer->persistentSock);