On Tue, 16 May 2006, Richard Lynch wrote:
On Tue, May 16, 2006 6:27 am, Martin Marques wrote:
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?
Yes, I can still connect to the socket and send commands to it.
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.php
bugs:~# 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.php
bugs:~# 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
---------------------------------------------------------
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php