Hello,

With DEBUG_ME on, select(...) works just fine. The code goes like this:

  if (fd2 == 0 && io_pending)
        n = 2;
  else if (select(i+1, &fds, NULL, NULL, &tv) > 0)
#ifdef DEBUG_ME
        {
        int idebug;
        idebug = select(i+1, &fds, NULL, NULL, &tv);
#endif
        n = 1 * (FD_ISSET(fd1, &fds) > 0) + 2 * (FD_ISSET(fd2, &fds) > 0);
#ifdef DEBUG_ME
        }
#endif

So it appears that the double call to select(...) solved the problem.

Am I missing something? Please cc me when replying 'cause I'm subscribed
to the digest only.

Enoch Wu


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

Reply via email to