Re: Re: Disable STDOUT
| From: | David Eriksson | Date: | Mon, 08 Jul 2002 18:03:50 +0000 |
| Subject: | Re: Re: Disable STDOUT | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-85843@lists.php.net to get a copy of this message | ||
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