mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
calmwm: sighdlr: use -1 instead of WAIT_ANY
This commit is contained in:
parent
2d9185129b
commit
a8527b5661
2
calmwm.c
2
calmwm.c
@ -207,7 +207,7 @@ sighdlr(int sig)
|
|||||||
switch (sig) {
|
switch (sig) {
|
||||||
case SIGCHLD:
|
case SIGCHLD:
|
||||||
/* Collect dead children. */
|
/* Collect dead children. */
|
||||||
while ((pid = waitpid(WAIT_ANY, &status, WNOHANG)) > 0 ||
|
while ((pid = waitpid(-1, &status, WNOHANG)) > 0 ||
|
||||||
(pid < 0 && errno == EINTR))
|
(pid < 0 && errno == EINTR))
|
||||||
;
|
;
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user