Re: adding low level file handling stuff
| From: | Alain Williams | Date: | Sat, 30 Apr 2011 12:18:25 +0000 |
| Subject: | Re: adding low level file handling stuff | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-52092@lists.php.net to get a copy of this message | ||
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
--
Alain Williams
Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer.
+44 (0) 787 668 0256 http://www.phcomp.co.uk/
Parliament Hill Computers Ltd. Registration Information: http://www.phcomp.co.uk/contact.php
#include <std_disclaimer.h>