uloop: fix signal unblocking
authorFelix Fietkau <nbd@nbd.name>
Tue, 17 May 2016 11:35:00 +0000 (13:35 +0200)
committerFelix Fietkau <nbd@nbd.name>
Tue, 17 May 2016 11:35:00 +0000 (13:35 +0200)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
uloop-epoll.c

index 9581e124040c91514f5cee0ec1a5d7800cfd1edd..46fa101fd786b5a700267bc1c7de7da09b07f42c 100644 (file)
@@ -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);