Re: PHP daemons

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

 



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.

goodluck!
- tul

Martin Marques wrote:
I've been using PHP for a while with a daemon I made a few years ago, which is in use, working great. I used the example that's in the docs:

http://www.php.net/manual/en/ref.sockets.php

A few months ago I started to make a new daemon for other purposes, and I decided to build some objects to make it OOP. This small server is almost fully functional, but I got into a small problem: I can't kill the daemon like I used to with the other daemon. I just won't die, unless I get the pid and send a SIGKILL to the pid.

Both servers are runned executing the PHP script, which has in the first line:

#!/usr/bin/php

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. Any ideas on why?

--
 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


[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