summary refs log tree commit diff
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2017-04-25 22:26:57 +0200
committerLeah Neukirchen <leah@vuxu.org>2017-04-25 22:26:57 +0200
commita8527b56612b69f32906ea4547f08b99ae57e4d9 (patch)
tree1e9d665a37fbd3741580ace576663dea1133036b
parent2d9185129bbf40029ae35cbdc9667e1c777593fe (diff)
downloadcwm-a8527b56612b69f32906ea4547f08b99ae57e4d9.tar.gz
cwm-a8527b56612b69f32906ea4547f08b99ae57e4d9.tar.xz
cwm-a8527b56612b69f32906ea4547f08b99ae57e4d9.zip
calmwm: sighdlr: use -1 instead of WAIT_ANY
-rw-r--r--calmwm.c2
1 files changed, 1 insertions, 1 deletions
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;