Fixed OSX not registering the sigchld handler
This commit is contained in:
parent
0850658785
commit
e011939d5e
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue