[perl #112692] perlfunc: waitpid takes two args
authorEric Brine <ikegami@adaelis.com>
Tue, 22 May 2012 03:23:29 +0000 (20:23 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Tue, 22 May 2012 03:29:19 +0000 (20:29 -0700)
pod/perlfunc.pod

index 553f1e3..ce2fe53 100644 (file)
@@ -4075,7 +4075,7 @@ followed by
        # am the parent:
        # either write TO_KID or else read FROM_KID
        ...
-       waitpid $child_pid;
+       waitpid $child_pid, 0;
     } else {
        # am the child; use STDIN/STDOUT normally
        ...