--perlplexer# Create 10 child processes for (1..10){ my $pid = fork(); last unless defined $pid; # Too many processes already? unless($pid){ # Child code here exit; } } # wait() for kids while(($pid = wait()) > 0){ # Check $? here }
In reply to Re: Re: Re: Perl IPC: Checking Exit Status of Child Process
by perlplexer
in thread Perl IPC: Checking Exit Status of Child Process
by bayruds
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |