Re: exec in CLI vs. mod_php

From: Date: Fri, 30 May 2003 14:44:43 +0000
Subject: Re: exec in CLI vs. mod_php
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-2091@lists.php.net to get a copy of this message
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 > > >

« previous php.internals (#2091) next »