Steve Dower <steve.do...@python.org> added the comment:

> How does select() know the FD_SETSIZE?

It doesn't have to. The actual number of descriptors is passed in, and the API 
presumably assumes that FD_SETSIZE is bigger than that (or else the caller 
would have crashed writing to invalid memory).

I don't see why we'd make it a parameter though. If we have all the 
descriptors, just allocate a big enough array and pass it in?

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue28708>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to