Help for this page
for my $pid (@pids) { my $r = waitpid($pid, 0); # do error checking here, and ensure that $r is really $pid }