calmwm: sighdlr: use -1 instead of WAIT_ANY

This commit is contained in:
Leah Neukirchen 2017-04-25 22:26:57 +02:00
parent 2d9185129b
commit a8527b5661

View File

@ -207,7 +207,7 @@ sighdlr(int sig)
switch (sig) {
case SIGCHLD:
/* Collect dead children. */
while ((pid = waitpid(WAIT_ANY, &status, WNOHANG)) > 0 ||
while ((pid = waitpid(-1, &status, WNOHANG)) > 0 ||
(pid < 0 && errno == EINTR))
;
break;