Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.openwrt.org/project/libubox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2016-05-17 14:35:00 +0300
committerFelix Fietkau <nbd@nbd.name>2016-05-17 14:35:00 +0300
commit004be15be4f3a8fb0cb781769338f91d0347dafc (patch)
tree1c086c5e2615ae8c47791a938cdd5f3c946d2688 /uloop-epoll.c
parentb06cd8c58e276a44fbe19f9ed5b1a7a74e5ca4e3 (diff)
uloop: fix signal unblocking
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'uloop-epoll.c')
-rw-r--r--uloop-epoll.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/uloop-epoll.c b/uloop-epoll.c
index 9581e12..46fa101 100644
--- a/uloop-epoll.c
+++ b/uloop-epoll.c
@@ -58,7 +58,7 @@ uloop_setup_signalfd(bool add)
if (!add) {
uloop_fd_delete(&sfd);
- sigprocmask(SIG_BLOCK, &prev_mask, NULL);
+ sigprocmask(SIG_SETMASK, &prev_mask, NULL);
} else {
sigaddset(&mask, SIGQUIT);
sigaddset(&mask, SIGINT);