Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Tue, 15 Apr 2003 16:12:27 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: 1.3.22: bug in poll() - WinXP/all Message-ID: <20030415141227.GD8070@cygbert.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <20030415115953 DOT 65188 DOT qmail AT web13901 DOT mail DOT yahoo DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030415115953.65188.qmail@web13901.mail.yahoo.com> User-Agent: Mutt/1.4.1i On Tue, Apr 15, 2003 at 04:59:53AM -0700, Chet wrote: > I recently starting moving a project over from Redhat 7.x to Cygwin and found a > slight problem using poll() and a set of descriptor structs with POLLIN, > POLLOUT, and POLLPRI set. Using this combination or any two of those flags can > causes poll() to return an incorrect number of structs containing returned > events. > > After looking through the source I noticed that poll() returns the value from > cygwin_select. This is incorrect as cygwin_select() returns the total number of > descriptors containing events for the send, recv, and except parts during the > select() call. Hmm, all these descriptors are getting a non-0 content in revents so the number should be the same. Or do I miss something? Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developer mailto:cygwin AT cygwin DOT com Red Hat, Inc. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/