Remove incorrect setting of errno = EBADF when a select() has data or eof on read fds and no data is waiting on error fds.