diff options
author | Luke Smith <luke@lukesmith.xyz> | 2020-06-02 15:45:47 -0400 |
---|---|---|
committer | Luke Smith <luke@lukesmith.xyz> | 2020-06-02 15:45:47 -0400 |
commit | da7df2f2c263d5534f7b43ea9b0eda01e0986a17 (patch) | |
tree | 469ba327a504ec29074fe68e150405af01e7ce8e /dwmblocks.c | |
parent | 744d33a345c2796341b976b121b955eb6523aae9 (diff) | |
download | dwmblocks-da7df2f2c263d5534f7b43ea9b0eda01e0986a17.tar.gz dwmblocks-da7df2f2c263d5534f7b43ea9b0eda01e0986a17.tar.bz2 dwmblocks-da7df2f2c263d5534f7b43ea9b0eda01e0986a17.zip |
fix #24
Diffstat (limited to 'dwmblocks.c')
-rw-r--r-- | dwmblocks.c | 6 |
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 |