You are here: Re: [PHP] pcntl_fork() hangs with FUTEX_WAIT « PHP « IT news, forums, messages
Re: [PHP] pcntl_fork() hangs with FUTEX_WAIT

Posted by Steve on 02/17/05 10:26

Well, but I don't use multithreading? PHP is running as CLI exec, not
compiled into Apache...

That's my configure command:
../configure --enable-pcntl --with-curl --with-mysql

Or do I have to care for thread safety anyway?

Regards,
Steve



Richard Lynch wrote:
> 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.
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация