On Jul 07, 1999 at 02:33:19PM -0700, Matthew Dillon wrote:
>     Not unless you want to blow up virtually every program that uses select!!!
> 
>     Passing an nd parameter that is greater then the current number of
>     descriptors is perfectly valid.  It's setting a bit in the bitmask for
>     one of those descriptors that should return EBADF!

Hmm, you're right.  Arguably, it could return EINVAL.  Actually, the
man page documents this behavior, although it gets the 256 number wrong.

     If nfds is greater than the number of open files, select() is not guaran-
     teed to examine the unused file descriptors.   For historical reasons,
     select() will always examine the first 256 descriptors.

--
Jonathan


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to