note 41216 deleted from ref.sockets by tomsommer

From: Date: Thu, 15 Apr 2004 06:12:00 +0000
Subject: note 41216 deleted from ref.sockets by tomsommer
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-68146@lists.php.net to get a copy of this message
Note Submitter: Rick Dailey ---- A quick note for the forking daemon code above. You might want to add pcntl_waitpid(-1,$status); below your child block. This helped me to prevent a mess of zombie processes. <? elseif($child == 0) { socket_close($sock); interact($msgsock); exit(); } pcntl_waitpid(-1,$status); ?>

« previous php.notes (#68146) next »