| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
| List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-owner AT sources DOT redhat DOT com |
| Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
| X-Authentication-Warning: | eskimo.com: ewu owned process doing -bs |
| Date: | Tue, 27 Feb 2001 09:58:47 -0800 (PST) |
| From: | Enoch Wu <ewu AT eskimo DOT com> |
| To: | cygwin AT cygwin DOT com |
| Subject: | Possible bug in Cygwin select() function |
| Message-ID: | <Pine.SUN.3.96.1010227094756.25648A-100000@eskimo.com> |
| MIME-Version: | 1.0 |
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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |