Re: pcntl_fork() hangs with FUTEX_WAIT

From: Date: Thu, 17 Feb 2005 08:26:57 +0000
Subject: Re: pcntl_fork() hangs with FUTEX_WAIT
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-208899@lists.php.net to get a copy of this message
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.


« previous php.general (#208899) next »