Patch suggested by Eric Fifer <EFifer@sanwaint.com>
* poll.cc (poll): Fix erroneous negations.
This commit is contained in:
parent
b0d5cd02dc
commit
17811f7bbe
|
@ -1,3 +1,8 @@
|
||||||
|
Mon Jul 17 19:39:00 2000 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
Patch suggested by Eric Fifer <EFifer@sanwaint.com>
|
||||||
|
* poll.cc (poll): Fix erroneous negations.
|
||||||
|
|
||||||
Mon Jul 17 17:56:00 2000 Corinna Vinschen <corinna@vinschen.de>
|
Mon Jul 17 17:56:00 2000 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* environ.cc (setenv): Use __cygwin_environ instead of
|
* environ.cc (setenv): Use __cygwin_environ instead of
|
||||||
|
|
|
@ -51,11 +51,11 @@ poll (struct pollfd *fds, unsigned int nfds, int timeout)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
fds[i].revents = 0;
|
fds[i].revents = 0;
|
||||||
if (!FD_ISSET (fds[i].fd, &read_fds))
|
if (FD_ISSET (fds[i].fd, &read_fds))
|
||||||
fds[i].revents |= POLLIN;
|
fds[i].revents |= POLLIN;
|
||||||
if (!FD_ISSET (fds[i].fd, &write_fds))
|
if (FD_ISSET (fds[i].fd, &write_fds))
|
||||||
fds[i].revents |= POLLOUT;
|
fds[i].revents |= POLLOUT;
|
||||||
if (!FD_ISSET (fds[i].fd, &except_fds))
|
if (FD_ISSET (fds[i].fd, &except_fds))
|
||||||
fds[i].revents |= POLLPRI;
|
fds[i].revents |= POLLPRI;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue