View | Details | Raw Unified | Return to bug 3416
Collapse All | Expand All

(-)a/openbsd-compat/bsd-poll.c (-3 / +3 lines)
Lines 91-101 ppoll(struct pollfd *fds, nfds_t nfds, const struct timespec *tmoutp, Link Here
91
		fds[i].revents = 0;
91
		fds[i].revents = 0;
92
		if (fd == -1)
92
		if (fd == -1)
93
			continue;
93
			continue;
94
		if (FD_ISSET(fd, readfds))
94
		if ((fds[i].events & POLLIN) && FD_ISSET(fd, readfds))
95
			fds[i].revents |= POLLIN;
95
			fds[i].revents |= POLLIN;
96
		if (FD_ISSET(fd, writefds))
96
		if ((fds[i].events & POLLOUT) && FD_ISSET(fd, writefds))
97
			fds[i].revents |= POLLOUT;
97
			fds[i].revents |= POLLOUT;
98
		if (FD_ISSET(fd, exceptfds))
98
		if ((fds[i].events & POLLPRI) && FD_ISSET(fd, exceptfds))
99
			fds[i].revents |= POLLPRI;
99
			fds[i].revents |= POLLPRI;
100
	}
100
	}
101
101

Return to bug 3416