NetBSD-Bugs archive

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

Re: lib/45148: dup2(3) and dup3(3) should support EINVAL



On Sat, Jul 16, 2011 at 02:35:28AM +0300, Jukka Ruohonen wrote:
> Can martin@ or christos@ comment about the avove? Surely it must be
> impossible to fail with EMFAIL if these always close a descriptor...

dup() can fail with EMFILE, obviously. I don't think dup2 or dup3 can
fail this way, as we guarantee atomicity by keeping filedescriptors
locked over the whole operation.

Martin


Home | Main Index | Thread Index | Old Index