From 004be15be4f3a8fb0cb781769338f91d0347dafc Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 17 May 2016 13:35:00 +0200 Subject: [PATCH] uloop: fix signal unblocking Signed-off-by: Felix Fietkau --- uloop-epoll.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.25.1