Fun with file descriptors
Posted Jun 7, 2007 4:42 UTC (Thu) by
felixfix (subscriber, #242)
Parent article:
Fun with file descriptors
Hmmm ... It's been a while since I wrote threaded socket code, so I may be barking up a non-existent tree. But if a new open() flag to create a non-sequential fd is not welcome because socket(), for instance, does not have these flags, why is a new O_CLOEXEC flag acceptable? Is it the case that no socket fd will ever be closed upon exec? Or is it because exec is (still?) a no-no in threaded programs?
(
Log in to post comments)