From: Felix Fietkau Date: Tue, 17 May 2016 11:35:00 +0000 (+0200) Subject: uloop: fix signal unblocking X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=004be15be4f3a8fb0cb781769338f91d0347dafc;p=oweals%2Flibubox.git uloop: fix signal unblocking Signed-off-by: Felix Fietkau --- 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);