On 23-08-2010 13:04, Daniel P. Berrange wrote:
> Ok, I'll fix that up, but just so that I understand: Your
concern is
> that there might be an open file descriptor between FD_SETSIZE and
> _SC_OPEN_MAX that we don't want to close?
No, its that if you try to run FD_ISSET for i > FD_SETSIZE, you'll likely
have an array overflow / out of bounds, so just stop at FD_SETSIZE.
Oh, of course. How silly of me. Thanks :)
--
Soren Hansen
Ubuntu Developer
http://www.ubuntu.com/