aboutsummaryrefslogtreecommitdiffstats
path: root/dwmblocks.c
diff options
context:
space:
mode:
Diffstat (limited to 'dwmblocks.c')
-rw-r--r--dwmblocks.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/dwmblocks.c b/dwmblocks.c
index c2e1477..0186eff 100644
--- a/dwmblocks.c
+++ b/dwmblocks.c
@@ -188,8 +188,9 @@ void setroot()
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);
}