diff options
author | Anselm R Garbe <anselm@garbe.us> | 2009-08-16 08:18:25 +0100 |
---|---|---|
committer | Anselm R Garbe <anselm@garbe.us> | 2009-08-16 08:18:25 +0100 |
commit | 8ef465d592fada11dab075bb7569239c03e3afa4 (patch) | |
tree | b014f43decb83a2db4d5b9335df569a9c3a0cdaa /dwm.c | |
parent | 33fe200b521b19a089d39aca247bb78432e02e6d (diff) | |
download | dwm-8ef465d592fada11dab075bb7569239c03e3afa4.tar dwm-8ef465d592fada11dab075bb7569239c03e3afa4.tar.gz dwm-8ef465d592fada11dab075bb7569239c03e3afa4.tar.bz2 |
applied Jukka's sigchld patch
Diffstat (limited to 'dwm.c')
-rw-r--r-- | dwm.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1429,7 +1429,6 @@ setup(void) { XSetWindowAttributes wa; /* clean up any zombies immediately */ - signal(SIGCHLD, sigchld); sigchld(0); /* init screen */ @@ -1501,8 +1500,9 @@ showhide(Client *c) { void sigchld(int unused) { + if(signal(SIGCHLD, sigchld) == SIG_ERR) + die("Can't install SIGCHLD handler"); while(0 < waitpid(-1, NULL, WNOHANG)); - signal(SIGCHLD, sigchld); } void |