Re: pcntl_fork() hangs with FUTEX_WAIT
| From: | Richard Lynch | Date: | Wed, 16 Feb 2005 17:48:55 +0000 |
| Subject: | Re: pcntl_fork() hangs with FUTEX_WAIT | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-208853@lists.php.net to get a copy of this message | ||
Steve wrote:
> I have a program which creates a lot of children over the time, which
> terminate themselves after they are finished.
>
> After some time however, the parent process hangs; apparently in
> pcntl_fork(). The child from this fork, however, seems to run normally.
> An strace on the parent shows "futex(0x471cb0, FUTEX_WAIT, 2, NULL"
>
> The program runs on PHP 5.0.3-cli and Linux 2.6.
>
> Has anyone an idea what could be the reason for that hang?
Didja try:
http://www.google.com/search?q=FUTEX_WAIT
I did and got:
http://lists.boost.org/MailArchives/boost-users/msg07650.php
So I'm guessing you didn't compile *everything* on your PHP/Apache system
with multi-thread support.
--
Like Music?
http://l-i-e.com/artists.htm