summaryrefslogtreecommitdiff
path: root/mac
diff options
context:
space:
mode:
authorRobert Swiecki <robert@swiecki.net>2019-02-14 23:17:53 +0100
committerRobert Swiecki <robert@swiecki.net>2019-02-14 23:17:53 +0100
commit45fdeeb083130d7da2db3b674e2eb34aaf816a67 (patch)
tree76e1bfccfe68ed7c3668e7affc127d4329dbcc6c /mac
parent4a8dbbedb946a964a3d612fe3d3a235d857e5e70 (diff)
downloadhonggfuzz-45fdeeb083130d7da2db3b674e2eb34aaf816a67.tar.gz
honggfuzz: use sigwait in the signal thread as it's supported by macosx #2
Diffstat (limited to 'mac')
-rw-r--r--mac/arch.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mac/arch.c b/mac/arch.c
index 23869a16..e0d0ca2e 100644
--- a/mac/arch.c
+++ b/mac/arch.c
@@ -384,9 +384,9 @@ void arch_reapChild(run_t* run) {
}
} else {
/* Return with SIGIO, SIGCHLD and with SIGUSR1 */
- int sig = sigwaitinfo(&run->global->exe.waitSigSet, NULL);
- if (sig == -1 && (errno != EAGAIN && errno != EINTR)) {
- PLOG_F("sigwaitinfo(SIGIO|SIGCHLD|SIGUSR1)");
+ int sig;
+ if (sigwait(&run->global->exe.waitSigSet, &sig) != 0) {
+ PLOG_F("sigwait(SIGIO|SIGCHLD|SIGUSR1)");
}
}