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
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. This is now a userland interface question and something that
can be done portably. This only applies for multi-threaded programs and
I think the POSIX spawn interface is a better choice in that case
anyway.
Joerg
Home |
Main Index |
Thread Index |
Old Index