summaryrefslogtreecommitdiff
path: root/pod/perlipc.pod
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-02-22 09:44:07 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-02-22 09:44:07 +0000
commit1450d0701497dd4642a74925571472b56356c156 (patch)
treeb3afd940f60f24740f9a2c620f4b1ae1c35ba8c7 /pod/perlipc.pod
parentf83d2536257d3a72eef5f8d789c0784171782b42 (diff)
downloadperl-1450d0701497dd4642a74925571472b56356c156.tar.gz
perlipc bug (spotted by Ben Low)
p4raw-id: //depot/perl@5194
Diffstat (limited to 'pod/perlipc.pod')
-rw-r--r--pod/perlipc.pod2
1 files changed, 1 insertions, 1 deletions
diff --git a/pod/perlipc.pod b/pod/perlipc.pod
index 3034197e14..3649e4f883 100644
--- a/pod/perlipc.pod
+++ b/pod/perlipc.pod
@@ -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