On Sat, Jul 16, 2011 at 04:51:41PM +0100, David Laight wrote:
> > Log Message:
> > Note that dup2(2) and dup3(2) may not fail with EMFILE; from PR lib/45148.
> 
> What happens if the 'new' file number is above RLIMIT_NOFILES?

It fails with EBADF.

- Jukka.

Reply via email to