tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: linux has added "close on exec" flags to lots of fd calls

Joerg Sonnenberger <> writes:
> On Mon, Aug 04, 2008 at 06:13:26PM +0100, Love H?rnquist ?strand wrote:
>>> On second thought and as written in the blog, it doesn't make sense at
>>> all. sigprocmask and mutexes allow doing this in portable code.
>> Assume you are a library that wants to open a file, what mutex should  
>> you lock ?
> Define one.

Seems easier just to do open with the additional flag.

Perry E. Metzger      

Home | Main Index | Thread Index | Old Index