applied Jukka's sigchld patch

This commit is contained in:
Anselm R Garbe committed 2009-08-16 08:18:25 +01:00
1 parent 33fe200b52
commit 8ef465d592
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -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