pthread_once(&once_, &func); \
} while (0)
+# define mythread_sigmask(how, set, oset) \
+ pthread_sigmask(how, set, oset)
+
#else
# define mythread_once(func) \
} \
} while (0)
+# define mythread_sigmask(how, set, oset) \
+ sigprocmask(how, set, oset)
+
#endif
{
if (signals_block_count++ == 0) {
const int saved_errno = errno;
- sigprocmask(SIG_BLOCK, &hooked_signals, NULL);
+ mythread_sigmask(SIG_BLOCK, &hooked_signals, NULL);
errno = saved_errno;
}
if (--signals_block_count == 0) {
const int saved_errno = errno;
- sigprocmask(SIG_UNBLOCK, &hooked_signals, NULL);
+ mythread_sigmask(SIG_UNBLOCK, &hooked_signals, NULL);
errno = saved_errno;
}