From: Alexander_Gernler@genua.de Date: Tue, 27 Jun 2006 07:23:59 +0000 (-0700) Subject: [perl #39639] perldoc -f waitpid has wrong code example X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=84b74420ec29626056f47c562bc5572638f87383;p=p5sagit%2Fp5-mst-13.2.git [perl #39639] perldoc -f waitpid has wrong code example From: Alexander_Gernler@genua.de (via RT) Message-ID: p4raw-id: //depot/perl@28444 --- diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod index f771749..26907b9 100644 --- a/pod/perlfunc.pod +++ b/pod/perlfunc.pod @@ -7152,7 +7152,7 @@ The status is returned in C<$?> and C<{^CHILD_ERROR_NATIVE}>. If you say #... do { $kid = waitpid(-1, WNOHANG); - } until $kid > 0; + } while $kid > 0; then you can do a non-blocking wait for all pending zombie processes. Non-blocking wait is available on machines supporting either the