This has been resolved by r20127 (reject fds beyond FD_SETSIZE when using select) and #6905 (using poll where available).