This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: 1.5.12-1: poll bug (Windows 2000)


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]