Re: Fork and zombies

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Waynn Lue wrote:

>> > While this works, it unfortunately leaves behind a zombie process
>> > every single time.
>>
>> You need to call pcntl_wait() or pcntl_waitpid().
>>
> 
> Right, but if I do that, then the parent has to wait until the child
> completes before it exits.  

No it doesn't - just call pcntl_wait() with WNOHANG to check the status
of a child. 


/Per

-- 
Per Jessen, Zürich (6.5°C)


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux