On Sat, Apr 30, 2011 at 2:18 PM, Alain Williams <a...@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:
> >
> http://andytson.com/blog/2010/05/daemonising-a-php-cli-script-on-a-posix-system/
> > 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

Reply via email to