Subject: Re: sys_select() EBADF bug
To: <>
From: David Laight <david@l8s.co.uk>
List: tech-kern
Date: 11/16/2002 13:17:23
On Sat, Nov 16, 2002 at 01:41:46PM +0100, der Mouse wrote:
> >> [...]
> > The only really safe way to support fds > (the default) FD_SETSIZE is
> > to convert the programs to use poll().
>
> "Really safe"? Safe against what? This sounds as though you're saying
> that defining a larger FD_SETSIZE and then proceeding to use it won't
> actually work right.
The other problem is that you need to know the maximum fd number
at compile time, not at runtime.
poll() lets you use a structure that is allocated at runtime.
David
--
David Laight: david@l8s.co.uk