Re: pcntl_fork() hangs with FUTEX_WAIT

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Steve wrote:
>
> 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?

For all I know (not much) --enable-pcntl may imply that you are doing
multi-threading...  Doesn't it kind of have to?  I mean, isn't that what
pcntl *DOES*?  Allow you to 'fork' a new process, which has its own
separate thread, by definition?  Or maybe processes and threads are
different enough that you're okay on this one...

If so, you have to re-compile cURL and MySQL with multi-threading turned
on as well, at least as I understand the Google answers.

Or maybe you turned on multi-threading with cURL and MySQL when you
compiled them for Apache, but now you need that *OFF* to work with your
non-thread CLI PHP binary.

Maybe there's a command line tool to ask a ".so" file if it's threaded or
not?   Maybe even just 'file foo.so' will tell you???

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux