Hi,

I know this mailinglist is not exactly the right place to ask "user
questions" (development WITH PHP etc..), but I am looking for some
skilled people (UNIX gurus?) as I am stuck with a problem and I couldn't
find the answer anywhere. And this is the place where the most skilled
people are, thus here I am :)

I am writing a "server/daemon framework" which should eventually allow
PHP developers to quickly create a server. You should look at the
"quoted.php" to see how easy this actually is. The framework does all
the dirty work in the background (forking off new children, managing
connections ..) and this is exactly the point where I have a problem:

how do I manage my child processes? My workaround is
to pcntl_signal(SIGCHLD, SIG_IGN); , but I actually want to keep track
of my childern (to limit the number of connections). Whenever I get a
SIGCHLD from a child process, how the hell should I know what PID
it came from? Should I just keep a list of processes and poll them
from time to time?

Any help would be appreciated.

sourcecode can be downloaded/viewed online at:

  http://daniel.lorch.cc/projects/phpserv/

there is a working demo for the next couple of hours (until I switch
off the machine):

  http://212.254.248.130/

Daniel Lorch



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to