On Sat, Jul 16, 2011 at 04:51:41PM +0100, David Laight wrote:
 > > Modified Files:
 > >    src/lib/libc/sys: dup.2
 > > 
 > > 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?

dunno.

 > And what if it is open already??

it gets closed first.

-- 
David A. Holland
dholl...@netbsd.org

Reply via email to