Ahmed Moustafa wrote:
> Drieux wrote:
> 
>>
>>
>>                    use POSIX ":sys_wait_h";
>>                    #...
>>                    do {
>>                        $kid = waitpid(-1,&WNOHANG);
>>                    } until $kid == -1;
> 
> 
> Does the execution of the program wait to all the forked processes to 
> terminate?

Perl Cookbook says "We use the WNOHANG flag to make waitpid immediately 
return 0 if there are no dead children".

So, the above code doesn't pause the program, does it?


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to