mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-20 16:01:10 +08:00
* poll.cc (poll): ...but set POLLIN instead.
This commit is contained in:
parent
dbcb75780a
commit
3a366b12f6
@ -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",
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user