aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-06-13 02:23:07 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-06-13 02:24:02 +0200
commit893609817feddfa21e88e1272a220329e4a54252 (patch)
tree0ae0b0112fda947797c2484e3330a0bb4348a2c4
parentsignal: refactoring (diff)
downloadcimple-893609817feddfa21e88e1272a220329e4a54252.tar.gz
cimple-893609817feddfa21e88e1272a220329e4a54252.zip
signal: sigprocmask -> pthread_sigmask
-rw-r--r--src/signal.c6
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;
}