Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 To: cygwin AT cygwin DOT com Subject: Possible bug in Cygwin select() function Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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