From 96a473cc3e97bb0adcebedcc1014a21449fa390f Mon Sep 17 00:00:00 2001 From: epg <> Date: Sun, 29 Aug 2004 23:14:14 +0000 Subject: [PATCH] (reaper): Why was i passing 0 to waitpid? All the documentation says to pass -1. 0 worked on NetBSD 1.6 but hangs on 2.0. Now pass -1 as we're supposed to. --- fa-flacd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fa-flacd b/fa-flacd index 064bee6..c3413e5 100755 --- a/fa-flacd +++ b/fa-flacd @@ -117,7 +117,7 @@ sub flac { sub reaper { my $pid; - while (($pid = waitpid(0, WNOHANG)) > 0) { + while (($pid = waitpid(-1, WNOHANG)) > 0) { push(@finished, [$pid, $?]); } -- 2.56.0