Xinqi Bao's Git
projects
/
dwm.git
/ commitdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
patch
|
inline
| side by side (from parent 1:
33fe200
)
applied Jukka's sigchld patch
author
Anselm R Garbe <
[email protected]
>
Sun, 16 Aug 2009 07:18:25 +0000
(08:18 +0100)
committer
Anselm R Garbe <
[email protected]
>
Sun, 16 Aug 2009 07:18:25 +0000
(08:18 +0100)
LICENSE
patch
|
blob
|
history
dwm.c
patch
|
blob
|
history
diff --git
a/LICENSE
b/LICENSE
index
a84241a
..
86b2c94
100644
(file)
--- a/
LICENSE
+++ b/
LICENSE
@@
-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-2009 Anselm R Garbe <garbeam at gmail dot com>
© 2006-2007 Sander van Dijk <a dot h dot vandijk at gmail dot com>
-© 2006-200
7
Jukka Salmi <jukka at salmi dot ch>
+© 2006-200
9
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>
© 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>
diff --git
a/dwm.c
b/dwm.c
index
1b30cae
..
e2f306c
100644
(file)
--- a/
dwm.c
+++ b/
dwm.c
@@
-1429,7
+1429,6
@@
setup(void) {
XSetWindowAttributes wa;
/* clean up any zombies immediately */
XSetWindowAttributes wa;
/* clean up any zombies immediately */
- signal(SIGCHLD, sigchld);
sigchld(0);
/* init screen */
sigchld(0);
/* init screen */
@@
-1501,8
+1500,9
@@
showhide(Client *c) {
void
sigchld(int unused) {
void
sigchld(int unused) {
+ if(signal(SIGCHLD, sigchld) == SIG_ERR)
+ die("Can't install SIGCHLD handler");
while(0 < waitpid(-1, NULL, WNOHANG));
while(0 < waitpid(-1, NULL, WNOHANG));
- signal(SIGCHLD, sigchld);
}
void
}
void