Re: exec in CLI vs. mod_php

From: Date: Fri, 30 May 2003 14:54:01 +0000
Subject: Re: exec in CLI vs. mod_php
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-2092@lists.php.net to get a copy of this message
At 17:44 30/05/2003, Wez Furlong wrote:
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.
This whole problem didn't add up to me - it didn't sound too logical to begin with. Anyway - after some archeological searches in my mailbox from 1998 (never erase email!) - here's the real reason. http://www.phpbuilder.com/mail/php3-list/199805/1391.php Zeev

« previous php.internals (#2092) next »