in reply to Re: Re: Perl IPC: Checking Exit Status of Child Process
in thread Perl IPC: Checking Exit Status of Child Process
--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 }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Perl IPC: Checking Exit Status of Child Process
by bayruds (Acolyte) on May 19, 2003 at 03:24 UTC | |
by perlplexer (Hermit) on May 19, 2003 at 11:33 UTC |