This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: 1.5.12-1: poll bug (Windows 2000)
- From: Corinna Vinschen <corinna-cygwin at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Tue, 19 Apr 2005 12:13:17 +0200
- Subject: Re: 1.5.12-1: poll bug (Windows 2000)
- References: <20050416054513.24152.qmail@web32214.mail.mud.yahoo.com>
- Reply-to: cygwin at cygwin dot com
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@cygwin.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/