From a8527b56612b69f32906ea4547f08b99ae57e4d9 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Tue, 25 Apr 2017 22:26:57 +0200 Subject: calmwm: sighdlr: use -1 instead of WAIT_ANY --- calmwm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calmwm.c b/calmwm.c index 813d606..7988273 100644 --- a/calmwm.c +++ b/calmwm.c @@ -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; -- cgit 1.4.1