Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2002-11-20 14:00:15 +0300
committerCorinna Vinschen <corinna@vinschen.de>2002-11-20 14:00:15 +0300
commit3a366b12f692fdfa5aeb8e7c603faa917d786011 (patch)
tree0e95c629c6490861ba2d7eac59a57a7410d152b6
parentdbcb75780a0346b6029f73e4cf77d0ca21efd6db (diff)
* poll.cc (poll): ...but set POLLIN instead.
-rw-r--r--winsup/cygwin/ChangeLog4
-rw-r--r--winsup/cygwin/poll.cc4
2 files changed, 7 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 7e712d55b..7ee12a33d 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,7 @@
+2002-11-20 Steven O'Brien <steven.obrien2@ntlworld.com>
+
+ * poll.cc (poll): ...but set POLLIN instead.
+
2002-11-20 Pierre Humblet <pierre.humblet@ieee.org>
* security.cc (get_attribute_from_acl): Always test "anti",
diff --git a/winsup/cygwin/poll.cc b/winsup/cygwin/poll.cc
index 52c05dd50..4e3028fff 100644
--- a/winsup/cygwin/poll.cc
+++ b/winsup/cygwin/poll.cc
@@ -111,9 +111,11 @@ poll (struct pollfd *fds, unsigned int nfds, int timeout)
Unfortunately, recvfrom() doesn't make much
sense then. It returns WSAENOTCONN in that
case. Since that's not actually an error,
- we must not set POLLERR. */
+ we must not set POLLERR but POLLIN. */
if (WSAGetLastError () != WSAENOTCONN)
fds[i].revents |= POLLERR;
+ else
+ fds[i].revents |= POLLIN;
break;
case 0: /* Closed on the read side. */
fds[i].revents |= POLLHUP;