[ILUG] don't pass open file descriptor to children

Padraig Brady Padraig at AnteFacto.com
Fri Jul 13 17:15:26 IST 2001


Perfect!

John P. Looney wrote:

> On Fri, Jul 13, 2001 at 04:05:02PM +0100, Padraig Brady mentioned:
> 
>>Is there a flag you can set on a file descriptor (using fcntl or equivalent)
>>to tell the kernel not to copy that particular descriptor to forked 
>>children?
>>
>  I think so - the fnctl man page has;
>    F_SETFD  Set the close-on-exec flag to the value specified by the FD_CLOEXEC bit of arg.






More information about the ILUG mailing list