uloop: fix signal unblocking

Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
Felix Fietkau 2016-05-17 13:35:00 +02:00
parent b06cd8c58e
commit 004be15be4

View file

@ -58,7 +58,7 @@ uloop_setup_signalfd(bool add)
if (!add) { if (!add) {
uloop_fd_delete(&sfd); uloop_fd_delete(&sfd);
sigprocmask(SIG_BLOCK, &prev_mask, NULL); sigprocmask(SIG_SETMASK, &prev_mask, NULL);
} else { } else {
sigaddset(&mask, SIGQUIT); sigaddset(&mask, SIGQUIT);
sigaddset(&mask, SIGINT); sigaddset(&mask, SIGINT);