curl-users
Re: make test hanging on Cygwin
From: Eugene Kotlyarov <ekot_at_narod.ru>
Date: Sun, 13 Nov 2005 10:40:17 +0300
Date: Sun, 13 Nov 2005 10:40:17 +0300
Daniel Stenberg wrote:
> Please do. I found some interesting pages on this topic. A few showed
> that other projects already have abandoned cygwin's poll() in preference
> to select() and then I found this summary:
>
> http://www.greenend.org.uk/rjk/2001/06/poll.html
>
> ... indicating that we should check for POLLHUP as well as POLLIN, and
> then cygwin's poll should work. Can you check this?
>
Yes indeed, adding check for POLLHUP in addition to POLLIN also makes tests
work.
It seems that cygwin poll in this regard is only compatible with one old
version of linux, so I've send patch to Cygwin list to make it return both
POLLHUP and POLLIN.
Received on 2005-11-13