This is the mail archive of the
cygwin@sources.redhat.com
mailing list for the Cygwin project.
Possible bug in Cygwin select() function
- To: cygwin at cygwin dot com
- Subject: Possible bug in Cygwin select() function
- From: Enoch Wu <ewu at eskimo dot com>
- Date: Tue, 27 Feb 2001 09:58:47 -0800 (PST)
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