Message344744
> 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? |
|
Date |
User |
Action |
Args |
2019-06-05 16:21:33 | steve.dower | set | recipients:
+ steve.dower, paul.moore, pitrou, vstinner, tim.golden, asvetlov, zach.ware, desbma, David Hirschfeld, andzn |
2019-06-05 16:21:33 | steve.dower | set | messageid: <1559751693.85.0.187275917436.issue28708@roundup.psfhosted.org> |
2019-06-05 16:21:33 | steve.dower | link | issue28708 messages |
2019-06-05 16:21:33 | steve.dower | create | |
|