This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Possible bug in Cygwin select() function


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]