dwmblocks

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit da7df2f2c263d5534f7b43ea9b0eda01e0986a17
parent 744d33a345c2796341b976b121b955eb6523aae9
Author: Luke Smith <luke@lukesmith.xyz>
Date:   Tue,  2 Jun 2020 15:45:47 -0400

fix #24

Diffstat:
Mdwmblocks.c | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git 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