Re: PHP daemons
| From: | Martin Marques | Date: | Wed, 17 May 2006 11:39:26 +0000 |
| Subject: | Re: PHP daemons | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-236334@lists.php.net to get a copy of this message | ||
On Tue, 16 May 2006, Richard Lynch wrote:
On Tue, May 16, 2006 6:27 am, Martin Marques wrote:Yes, I can still connect to the socket and send commands to it.In the first daemon all I have to do to kill it is execute a pkill server_name. But with the new daemon (the object orientaded one) it doesn't die.After you pkill it, does it still work?
Or is it a zombie?bugs:~# ps auxw | grep php
root 29327 0.0 0.5 16992 2288 ? S May15 0:00 /usr/bin/php -q /usr/local/php/printSocket/printSocket.php root 4066 0.0 1.3 17424 5352 ? S May16 0:00 /usr/bin/php -q /usr/local/php/offline/offlineSocket.phpbugs:~# pkill printSocket.php bugs:~# ps auxw | grep php
root 4066 0.0 1.3 17424 5352 ? S May16 0:00 /usr/bin/php -q /usr/local/php/offline/offlineSocket.phpbugs:~# pkill offlineSocket.php bugs:~# ps auxw | grep php
root 4066 0.0 1.3 17424 5352 ? S May16 0:00 /usr/bin/php -q /usr/local/php/offline/offlineSocket.php
It's possible PHP's shutdown functions trying to close the sockets and destroy the instances have a bug... You could try to pastebin the code somewhere.The code from the socket that accepts the kill is at: http://bugs.unl.edu.ar/~martin/socket1.phps The code of the socket that doesn't get killed is here: http://bugs.unl.edu.ar/~martin/socket2.tar -- 21:50:04 up 2 days, 9:07, 0 users, load average: 0.92, 0.37, 0.18 ---------------------------------------------------------
Lic. Martín Marqués | SELECT 'mmarques' || Centro de Telemática | '@' || 'unl.edu.ar';
Universidad Nacional | DBA, Programador,
del Litoral | Administrador
---------------------------------------------------------