Skip to content

Commit

Permalink
i#58 MacOS: fix Mac build error from r2429
Browse files Browse the repository at this point in the history
SVN-Revision: 2464
  • Loading branch information
derekbruening committed Jan 9, 2014
1 parent 94753cd commit 1fdd760
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/unix/signal.c
Expand Up @@ -2780,7 +2780,11 @@ record_pending_signal(dcontext_t *dcontext, int sig, kernel_ucontext_t *ucxt,
info->app_sigblocked = info->app_sigblocked_save;
info->in_sigsuspend = false;
/* update the set to restore to post-signal-delivery */
#ifdef MACOS
ucxt->uc_sigmask = *(__darwin_sigset_t *) &info->app_sigblocked;
#else
ucxt->uc_sigmask = info->app_sigblocked;
#endif
#ifdef DEBUG
if (stats->loglevel >= 3 && (stats->logmask & LOG_ASYNCH) != 0) {
LOG(THREAD, LOG_ASYNCH, 3, "after sigsuspend, blocked signals are now:\n");
Expand Down

0 comments on commit 1fdd760

Please sign in to comment.