perlipc bug (spotted by Ben Low)
authorGurusamy Sarathy <gsar@cpan.org>
Tue, 22 Feb 2000 09:44:07 +0000 (09:44 +0000)
committerGurusamy Sarathy <gsar@cpan.org>
Tue, 22 Feb 2000 09:44:07 +0000 (09:44 +0000)
p4raw-id: //depot/perl@5194

pod/perlipc.pod

index 3034197..3649e4f 100644 (file)
@@ -126,7 +126,7 @@ or even the more elaborate:
     use POSIX ":sys_wait_h";
     sub REAPER {
        my $child;
-        while ($child = waitpid(-1,WNOHANG)) {
+        while (($child = waitpid(-1,WNOHANG)) > 0) {
            $Kid_Status{$child} = $?;
        }
        $SIG{CHLD} = \&REAPER;  # still loathe sysV