diff options
-rw-r--r-- | src/signal.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/signal.c b/src/signal.c index 6a80e9d..1f4a9cc 100644 --- a/src/signal.c +++ b/src/signal.c @@ -29,9 +29,9 @@ static int signal_set_mask_internal(const sigset_t *new, sigset_t *old) { int ret = 0; - ret = sigprocmask(SIG_SETMASK, new, old); - if (ret < 0) { - log_errno("sigprocmask"); + ret = pthread_sigmask(SIG_SETMASK, new, old); + if (ret) { + pthread_errno(ret, "pthread_sigmask"); return ret; } |