Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:52093 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 44783 invoked from network); 30 Apr 2011 12:22:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Apr 2011 12:22:51 -0000 Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.170 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 209.85.215.170 mail-ey0-f170.google.com Received: from [209.85.215.170] ([209.85.215.170:56676] helo=mail-ey0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 54/25-10915-A1FFBBD4 for ; Sat, 30 Apr 2011 08:22:51 -0400 Received: by eyf5 with SMTP id 5so1385602eyf.29 for ; Sat, 30 Apr 2011 05:22:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=dw4PoaPCDHga3RfHf91eScuUQL/O2jXlpsPZ2AjBAes=; b=axXijSruq+pLyQbZG3oTtTGwURv8TFupA3QXcY+HsLVmij7orSXb0L2Y8SZymKBFcw ihaApB4plIeqj0XH2/VXUDr0aHF5t8eYe1dqZHLBUGPDhoIu4+c5fIVYyCXcJV6l+l30 2GH0v2g0pIoopEWh4hTXs3eUz5/VeVUJ2404k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=MtEVyLnD3C41rUu/6FQudRxVL8YeWHjR2/7yuBZ2osCA5WgaHLtqSi5dYLCAuhJsCI sPwnQH374oZL9MoTinsebsfrpqAW0a0c1MJDXTbpUfuXcRnmQFhDk7u054jhjQ9NhFm7 k1RAdy/pj3t+HM7xIeGRApG7ejaZzZ2NfPU8w= MIME-Version: 1.0 Received: by 10.14.148.67 with SMTP id u43mr2557632eej.7.1304166166147; Sat, 30 Apr 2011 05:22:46 -0700 (PDT) Received: by 10.14.127.79 with HTTP; Sat, 30 Apr 2011 05:22:46 -0700 (PDT) In-Reply-To: <20110430121825.GR8496@phcomp.co.uk> References: <20110430121825.GR8496@phcomp.co.uk> Date: Sat, 30 Apr 2011 14:22:46 +0200 Message-ID: To: Ferenc Kovacs , PHP Internals Content-Type: multipart/alternative; boundary=bcaec51a7af80fb2ab04a221d9b4 Subject: Re: [PHP-DEV] adding low level file handling stuff From: tyra3l@gmail.com (Ferenc Kovacs) --bcaec51a7af80fb2ab04a221d9b4 Content-Type: text/plain; charset=UTF-8 On Sat, Apr 30, 2011 at 2:18 PM, Alain Williams 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 --bcaec51a7af80fb2ab04a221d9b4--