Patch suggested by Eric Fifer <EFifer@sanwaint.com>

* poll.cc (poll): Fix erroneous negations.
This commit is contained in:
Corinna Vinschen
2000-07-17 17:42:00 +00:00
parent b0d5cd02dc
commit 17811f7bbe
2 changed files with 8 additions and 3 deletions

View File

@@ -51,11 +51,11 @@ poll (struct pollfd *fds, unsigned int nfds, int timeout)
else
{
fds[i].revents = 0;
if (!FD_ISSET (fds[i].fd, &read_fds))
if (FD_ISSET (fds[i].fd, &read_fds))
fds[i].revents |= POLLIN;
if (!FD_ISSET (fds[i].fd, &write_fds))
if (FD_ISSET (fds[i].fd, &write_fds))
fds[i].revents |= POLLOUT;
if (!FD_ISSET (fds[i].fd, &except_fds))
if (FD_ISSET (fds[i].fd, &except_fds))
fds[i].revents |= POLLPRI;
}
}