Message-Id: <
200112071144.MAA12790@pc.xs4all.nl>
p4raw-id: //depot/perl@13511
#...
do {
$kid = waitpid(-1, WNOHANG);
- } until $kid == -1;
+ } until $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