Check nfds against OPEN_MAX before calling poll.