Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:2091 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 55251 invoked from network); 30 May 2003 14:44:44 -0000 Received: from unknown (HELO secure.thebrainroom.com) (213.239.42.171) by pb1.pair.com with SMTP; 30 May 2003 14:44:44 -0000 Received: from zaneeb.brainnet.i (IDENT:root@brain.dial.nildram.co.uk [195.149.29.154]) by secure.thebrainroom.com (8.9.3/8.9.3) with ESMTP id PAA05883; Fri, 30 May 2003 15:44:42 +0100 Received: from zaneeb.brainnet.i (IDENT:wez@zaneeb.brainnet.i [127.0.0.1]) by zaneeb.brainnet.i (8.11.6/8.11.6) with ESMTP id h4UEih827915; Fri, 30 May 2003 15:44:43 +0100 Date: Fri, 30 May 2003 15:44:43 +0100 (BST) X-X-Sender: wez@zaneeb.brainnet.i To: Zeev Suraski cc: Brian Moon , internals@lists.php.net In-Reply-To: <5.1.0.14.2.20030530173447.052b8dc0@localhost> Message-ID: References: <01c301c3260b$512bda30$0100a8c0@doughboy> <01c301c3260b$512bda30$0100a8c0@doughboy> <5.1.0.14.2.20030530173447.052b8dc0@localhost> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [PHP-DEV] exec in CLI vs. mod_php From: wez@thebrainroom.com (Wez Furlong) I think I did check, but there were no useful comments. if close()ing them before exec'ing is a problem, can't we just set the close-on-exec flag on the fd's ? This will cause the descriptors to be dup'd for the fork, and the duplicates to be closed when the child execs; in theory, that will leave the parent in a fit and healthy state. --Wez. On Fri, 30 May 2003, Zeev Suraski wrote: > IIRC, it has to do with resources. For instance, if you close() a socket > that's used by a MySQL link, it ended up breaking the link in the parent > process. Did you try looking at the history to see whether there was any > info in the commit message? > > Zeev > > >