On Mon, 8 Jul 2002, Patrick O'Lone wrote: > Maybe I should write a function disable all open file descriptors instead, > since traditionally that's how it is done. However, I thought PHP closes > STDIN after it's initial read - but I might be wrong.
I'd say that stdin, stdout and stderr are not simply closed but redirected to /dev/null when writing a daemon. See the daemon() function in 4.4BSD. Regards, -\- David Eriksson -/- "I personally refuse to use inferior tools because of ideology." - Linus Torvalds -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php