note 99435 deleted from function.pcntl-fork by danbrown
| From: | danbrown@php.net | Date: | Tue, 17 Aug 2010 16:10:12 +0000 |
| Subject: | note 99435 deleted from function.pcntl-fork by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-171767@lists.php.net to get a copy of this message | ||
Note Submitter: cbn at grenet dot org
----
@cmyk777 at gmail dot com :
I am not sure to understand your script...
If you kill your parent process, it will kill all its children, probably before your time consuming
job would be finished (?)
Usually you have to tell your master process to pcntl_wait() for all the workers, and then exit().
You can also use pcntl_signal(SIGCHLD, SIG_IGN) to avoid zombies, that is probably what you are
looking for (it works under Linux 2.6).