Re: adding low level file handling stuff
| From: | Ferenc Kovacs | Date: | Sat, 30 Apr 2011 12:22:46 +0000 |
| Subject: | Re: adding low level file handling stuff | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-52093@lists.php.net to get a copy of this message | ||
On Sat, Apr 30, 2011 at 2:18 PM, Alain Williams <addw@phcomp.co.uk> wrote:
> On Sat, Apr 30, 2011 at 02:04:12PM +0200, Ferenc Kovacs wrote:
> > Hi.
> >
> > recently I found a nice blogpost about how to properly daemonize a php
> > daemon:
> >
> ‘G
ø¢
> íƒ?˜FQhttp://andytson.com/blog/2010/05/daemonising-a-php-cli-script-on-a-posix-system/§Hžêr›¡“eßîÎ
>
> > I've noticed in this article, that you can replace/redirect the
> > STDIN/STDOUT/STDERR from inside of your script, you have to close them,
> and
> > open in the correct order.
> > It works (at least on linux), because the opened files will have the
> 1,2,3
>
> Surely you mean: 0, 1, 2
>
>
sorry, right, thanks for correcting.
Tyrael