diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2002-11-20 11:00:15 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2002-11-20 11:00:15 +0000 |
commit | 3a366b12f692fdfa5aeb8e7c603faa917d786011 (patch) | |
tree | 0e95c629c6490861ba2d7eac59a57a7410d152b6 | |
parent | dbcb75780a0346b6029f73e4cf77d0ca21efd6db (diff) | |
download | newlib-3a366b12f692fdfa5aeb8e7c603faa917d786011.zip newlib-3a366b12f692fdfa5aeb8e7c603faa917d786011.tar.gz newlib-3a366b12f692fdfa5aeb8e7c603faa917d786011.tar.bz2 |
* poll.cc (poll): ...but set POLLIN instead.
-rw-r--r-- | winsup/cygwin/ChangeLog | 4 | ||||
-rw-r--r-- | winsup/cygwin/poll.cc | 4 |
2 files changed, 7 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 7e712d5..7ee12a3 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 52c05dd..4e3028f 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; |