summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnselm R Garbe <anselm@garbe.us>2009-08-16 08:18:25 +0100
committerAnselm R Garbe <anselm@garbe.us>2009-08-16 08:18:25 +0100
commit8ef465d592fada11dab075bb7569239c03e3afa4 (patch)
treeb014f43decb83a2db4d5b9335df569a9c3a0cdaa
parentadded merged patch of anydot and Neale (diff)
downloaddwm-8ef465d592fada11dab075bb7569239c03e3afa4.tar.gz
dwm-8ef465d592fada11dab075bb7569239c03e3afa4.zip
applied Jukka's sigchld patch
Diffstat (limited to '')
-rw-r--r--LICENSE2
-rw-r--r--dwm.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/LICENSE b/LICENSE
index a84241a..86b2c94 100644
--- a/LICENSE
+++ b/LICENSE
@@ -2,7 +2,7 @@ MIT/X Consortium License
2 2
3© 2006-2009 Anselm R Garbe <garbeam at gmail dot com> 3© 2006-2009 Anselm R Garbe <garbeam at gmail dot com>
4© 2006-2007 Sander van Dijk <a dot h dot vandijk at gmail dot com> 4© 2006-2007 Sander van Dijk <a dot h dot vandijk at gmail dot com>
5© 2006-2007 Jukka Salmi <jukka at salmi dot ch> 5© 2006-2009 Jukka Salmi <jukka at salmi dot ch>
6© 2007-2009 Premysl Hruby <dfenze at gmail dot com> 6© 2007-2009 Premysl Hruby <dfenze at gmail dot com>
7© 2007-2009 Szabolcs Nagy <nszabolcs at gmail dot com> 7© 2007-2009 Szabolcs Nagy <nszabolcs at gmail dot com>
8© 2007-2009 Christof Musik <christof at sendfax dot de> 8© 2007-2009 Christof Musik <christof at sendfax dot de>
diff --git a/dwm.c b/dwm.c
index 1b30cae..e2f306c 100644
--- a/dwm.c
+++ b/dwm.c
@@ -1429,7 +1429,6 @@ setup(void) {
1429 XSetWindowAttributes wa; 1429 XSetWindowAttributes wa;
1430 1430
1431 /* clean up any zombies immediately */ 1431 /* clean up any zombies immediately */
1432 signal(SIGCHLD, sigchld);
1433 sigchld(0); 1432 sigchld(0);
1434 1433
1435 /* init screen */ 1434 /* init screen */
@@ -1501,8 +1500,9 @@ showhide(Client *c) {
1501 1500
1502void 1501void
1503sigchld(int unused) { 1502sigchld(int unused) {
1503 if(signal(SIGCHLD, sigchld) == SIG_ERR)
1504 die("Can't install SIGCHLD handler");
1504 while(0 < waitpid(-1, NULL, WNOHANG)); 1505 while(0 < waitpid(-1, NULL, WNOHANG));
1505 signal(SIGCHLD, sigchld);
1506} 1506}
1507 1507
1508void 1508void