From da7df2f2c263d5534f7b43ea9b0eda01e0986a17 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Tue, 2 Jun 2020 15:45:47 -0400 Subject: [PATCH] fix #24 --- dwmblocks.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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