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
>
>
>

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to