From 893609817feddfa21e88e1272a220329e4a54252 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Tue, 13 Jun 2023 02:23:07 +0200 Subject: signal: sigprocmask -> pthread_sigmask --- src/signal.c | 6 +++--- 1 file 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; } -- cgit v1.2.3