in reply to Re: New Child to Wait for First Child to Die
in thread New Child to Wait for First Child to Die
while (defined (my $rc = waitpid(-1, &WNOHANG))) {
#some child has finished
}
I don't understand how to use this to stop the main program launching another child untill the first child is dead.
Thanks