diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-06-13 02:23:07 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-06-13 02:24:02 +0200 |
commit | 893609817feddfa21e88e1272a220329e4a54252 (patch) | |
tree | 0ae0b0112fda947797c2484e3330a0bb4348a2c4 /src/signal.c | |
parent | signal: refactoring (diff) | |
download | cimple-893609817feddfa21e88e1272a220329e4a54252.tar.gz cimple-893609817feddfa21e88e1272a220329e4a54252.zip |
signal: sigprocmask -> pthread_sigmask
Diffstat (limited to 'src/signal.c')
-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; } |