NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: kern/44950: fcntl(F_MAXFD) returns bogus values
The following reply was made to PR kern/44950; it has been noted by GNATS.
From: Martin Husemann <martin%duskware.de@localhost>
To: Jukka Ruohonen <jruohonen%iki.fi@localhost>
Cc: gnats-bugs%NetBSD.org@localhost, Julio Merino <jmmv%julipedia.org@localhost>
Subject: Re: kern/44950: fcntl(F_MAXFD) returns bogus values
Date: Wed, 11 May 2011 09:58:18 +0200
On Wed, May 11, 2011 at 10:55:08AM +0300, Jukka Ruohonen wrote:
> for (i = 0; i < 1024; i++)
> (void)close(i);
>
> _exit(fcntl(0, F_MAXFD));
You have done close(0) and now can't fcntl(0, ...). We could make an exception
for F_MAXFD in the kernel (but check the standard carefully first).
Martin
Home |
Main Index |
Thread Index |
Old Index