Skip to content
This repository has been archived by the owner on Oct 4, 2018. It is now read-only.

Commit

Permalink
applied Jukka's sigchld patch
Browse files Browse the repository at this point in the history
  • Loading branch information
garbeam committed Aug 16, 2009

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 7689e18 commit 9b91da6
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@ MIT/X Consortium License

© 2006-2009 Anselm R Garbe <garbeam at gmail dot com>
© 2006-2007 Sander van Dijk <a dot h dot vandijk at gmail dot com>
© 2006-2007 Jukka Salmi <jukka at salmi dot ch>
© 2006-2009 Jukka Salmi <jukka at salmi dot ch>
© 2007-2009 Premysl Hruby <dfenze at gmail dot com>
© 2007-2009 Szabolcs Nagy <nszabolcs at gmail dot com>
© 2007-2009 Christof Musik <christof at sendfax dot de>
4 changes: 2 additions & 2 deletions dwm.c
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 9b91da6

Please sign in to comment.