On 28 February 2013 23:02, Jeff Sickel <jas@corpus-callosum.com> wrote:
that just removes the
offending EBADF

it should generate EBADF for any bit set in any of the fd_sets when that bit doesn't correspond to an open file descriptor.
the mistake was producing EBADF on a very specific condition associated with an *open* file descriptor