aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dwmblocks.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/dwmblocks.c b/dwmblocks.c
index fb56d95..0186eff 100644
--- a/dwmblocks.c
+++ b/dwmblocks.c
@@ -185,11 +185,12 @@ void setroot()
{
/* block all signals until after root updated */
sigset_t new, old;
- sigfillset(&new);
- sigdelset(&new, SIGINT);
- sigdelset(&new, SIGTERM);
+ for (unsigned int i = SIGRTMIN; i <= SIGRTMAX; i++) {
+ sigaddset(&new, i);
+ }
+ sigemptyset(&old);
- if (sigprocmask(SIG_SETMASK, &new, &old) < 0) {
+ if (sigprocmask(SIG_SETMASK, &new, NULL) < 0) {
perror("sigset");
exit(1);
}