Re: Fork and zombies

From: Date: Mon, 16 Mar 2009 09:56:50 +0000
Subject: Re: Fork and zombies
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-290111@lists.php.net to get a copy of this message
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)

« previous php.general (#290111) next »