From e011939d5e98369442e4d0217d4c71989226ae2c Mon Sep 17 00:00:00 2001 From: Snaipe Date: Thu, 17 Sep 2015 06:09:56 -0700 Subject: [PATCH] Fixed OSX not registering the sigchld handler --- src/compat/process.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compat/process.c b/src/compat/process.c index 8acfec9..f196b8c 100644 --- a/src/compat/process.c +++ b/src/compat/process.c @@ -108,7 +108,7 @@ static TCHAR g_mapping_name[] = TEXT("WinCriterionWorker"); static struct full_context local_ctx; #endif -#ifdef __unix__ +#if defined(__unix__) || defined(__APPLE__) # ifndef __GNUC__ # error Unsupported compiler. Use GCC or Clang under *nixes. # endif @@ -205,7 +205,7 @@ int resume_child(void) { run_worker(&g_worker_context); return 1; #else -# ifdef __unix__ +# if defined(__unix__) || defined(__APPLE__) struct sigaction sa; sa.sa_handler = &handle_sigchld; sigemptyset(&sa.sa_mask);