[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
4 aug 2008 kl. 18.10 skrev Joerg Sonnenberger:
On Mon, Aug 04, 2008 at 07:00:57PM +0200, Joerg Sonnenberger wrote:
On Mon, Aug 04, 2008 at 12:42:54PM -0400, Perry E. Metzger wrote:
Linux seems to be adding lots of flags to things like "open" to set
close on exec from the time an fd is born. They claim this helps
I don't think this argument makes much sense, but for multi-threaded
programs having something like POSIX spawn around it better anyway.
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 ?
Main Index |
Thread Index |