Hello
I've tried to build latest Curl on Cygwin and encountered problem reason
of which is very nicely summarized on the following page
http://www.greenend.org.uk/rjk/2001/06/poll.html
It shows that behaviour of cygwin poll when socket is closed (fourth column
in table) is only compatible with one old version of linux. Though curl
developer probably will make workaround for this, maybe fix it also in
Cygwin to avoid further problems. I've attached the patch for it.
--- poll.cc.old 2005-11-13 09:05:20.640625000 +0300
+++ poll.cc 2005-11-13 09:05:32.312500000 +0300
@@ -119,7 +119,7 @@
fds[i].revents |= POLLIN;
break;
case 0: /* Closed on the read side. */
- fds[i].revents |= POLLHUP;
+ fds[i].revents |= (POLLHUP | POLLIN);
break;
default:
fds[i].revents |= POLLIN;
--
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/