aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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