On Tue, 16 May 2006, M. Sokolewicz wrote:
Well, by looking into my cristal ball I think your problem lies at line 12 of
file x.php for sure!! It's probably the I_have_not_seen_any_code_at_all("so I
can't tell you anything about it") function there.
No problem. :-)
I solved it making a second script that I run when I want to close the
server. This script just conects and sends a "shutdown" string. I changed
the daemon so that it will recieve this string and close all conections,
close the socket and break all the loops. :-)
Any way, I don't know why the code from the first daemon finish well when
a kill is sent to it (remember that this daemon is a copy from the first
example at: http://ar2.php.net/manual/en/ref.sockets.php)
--
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