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, 19 Apr 2005 12:13:17 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: 1.5.12-1: poll bug (Windows 2000) Message-ID: <20050419101317.GN16098@cygbert.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <20050416054513 DOT 24152 DOT qmail AT web32214 DOT mail DOT mud DOT yahoo DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050416054513.24152.qmail@web32214.mail.mud.yahoo.com> User-Agent: Mutt/1.4.2i On Apr 15 22:45, Tony Jaa wrote: > Cygwin v1.5.12-1/Windows 2000 > > Cygwin poll() uses POLLPRI as the flag for detecting > exceptions, POLLPRI must be explicitly set (otherwise > socket exceptions aren't reported), and POLLERR is > only used when select() returns -1 but there was no > WSAENOTCONN. However, the Unix man page for poll() > says POLLPRI is for detecting urgent data to read, > POLLERR is for detecting exceptions, and POLLERR does > not need to be explicitly set in the pollfd.events > field. Why is POLLPRI used for detecting exceptions > instead of POLLERR? Why are exceptions only detected > when POLLPRI is set instead of being detected > automatically? I've created a patch which should result in poll behaving more closely to Linux. It didn't make it into the 1.5.15 release but you can try the latest developer snapshot from http://www.cygwin.com/snapshots/ Thanks for the testcase, Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader mailto:cygwin AT cygwin DOT com Red Hat, Inc. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/