summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2020-06-02 15:45:47 -0400
committerLuke Smith <luke@lukesmith.xyz>2020-06-02 15:45:47 -0400
commitda7df2f2c263d5534f7b43ea9b0eda01e0986a17 (patch)
tree469ba327a504ec29074fe68e150405af01e7ce8e
parent744d33a345c2796341b976b121b955eb6523aae9 (diff)
downloaddwmblocks-da7df2f2c263d5534f7b43ea9b0eda01e0986a17.tar.gz
dwmblocks-da7df2f2c263d5534f7b43ea9b0eda01e0986a17.tar.bz2
dwmblocks-da7df2f2c263d5534f7b43ea9b0eda01e0986a17.zip
fix #24
-rw-r--r--dwmblocks.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/dwmblocks.c b/dwmblocks.c
index bf648c2..f061503 100644
--- a/dwmblocks.c
+++ b/dwmblocks.c
@@ -121,7 +121,11 @@ void setupsignals()
sa.sa_sigaction = buttonhandler;
sa.sa_flags = SA_SIGINFO;
sigaction(SIGUSR1, &sa, NULL);
- signal(SIGCHLD, SIG_IGN);
+ struct sigaction sigchld_action = {
+ .sa_handler = SIG_DFL,
+ .sa_flags = SA_NOCLDWAIT
+ };
+ sigaction(SIGCHLD, &sigchld_action, NULL);
}
#endif
Software created with 💖