tapplied Jukka's sigchld patch - dwm - [fork] customized build of dwm, the dynamic window manager
(HTM) git clone git://src.adamsgaard.dk/dwm
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 8ef465d592fada11dab075bb7569239c03e3afa4
(DIR) parent 33fe200b521b19a089d39aca247bb78432e02e6d
(HTM) Author: Anselm R Garbe <anselm@garbe.us>
Date: Sun, 16 Aug 2009 08:18:25 +0100
applied Jukka's sigchld patch
Diffstat:
M LICENSE | 2 +-
M dwm.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
---
(DIR) diff --git a/LICENSE b/LICENSE
t@@ -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>
(DIR) diff --git a/dwm.c b/dwm.c
t@@ -1429,7 +1429,6 @@ setup(void) {
XSetWindowAttributes wa;
/* clean up any zombies immediately */
- signal(SIGCHLD, sigchld);
sigchld(0);
/* init screen */
t@@ -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