On 08/22/2009 03:25 PM, Bruno Haible wrote:
Eric Blake wrote:we also need to tweak the O_NOINHERIT flag of an existing fd without having to use dup in cloexec.c (I'm hoping the windows functions GetHandleInformation and SetHandleInformation work here).I don't see how to make it work without a lot of dup() calls and without assuming that O_APPEND is not being used.
I don't understand the problem. Certainly I'm using SetHandleInformation in GNU Smalltalk for sockets.
Paolo