POLLHUP
pfds[j].events |= POLLHUP|POLLERR;
if (pfds[i].revents & (POLLHUP|POLLERR)) {
if ((httpd->fds[idx].revents & (POLLNVAL|POLLERR|POLLHUP)) == 0)
return (POLLHUP);
return (POLLHUP);
return POLLHUP;
return POLLHUP;
fail1: selnotify(&sc->sc_rsel, POLLHUP, 0);
selnotify(&sc->sc_rsel, POLLHUP, 0);
return (POLLHUP);
return (POLLHUP);
return (POLLHUP);
return POLLHUP;
return POLLHUP;
mask |= POLLHUP;
return POLLHUP;
return POLLHUP;
return (POLLHUP);
return POLLHUP;
selnotify(&mq->mq_rsel, POLLHUP, 0);
selnotify(&mq->mq_wsel, POLLHUP, 0);
band = POLLHUP;
revents |= POLLHUP;
POLLRDNORM | POLLHUP | POLLERR,
POLLWRNORM | POLLHUP | POLLERR,
fds->events | POLLERR | POLLHUP);
int revents = events & (pfd->events | POLLERR | POLLHUP);
if (events & POLLHUP)
revents |= POLLHUP;
if (events & (POLLIN | POLLHUP | POLLRDNORM))
return POLLHUP;
if (events & POLLHUP)
revents |= POLLHUP;
if (events & (POLLIN | POLLHUP | POLLRDNORM))
band = POLLHUP;
revents |= POLLHUP;
if (wso != NULL && (revents & POLLHUP) == 0) {
if (fds.revents & (POLLERR | POLLHUP | POLLNVAL))
POLLOUT | POLLWRNORM | POLLWRBAND | POLLHUP;
POLLOUT | POLLWRNORM | POLLWRBAND | POLLHUP;
check_pollclosed_immediate_readsome(readfd, writefd, POLLHUP);
check_pollclosed_immediate_readnone(readfd, writefd, POLLHUP);
check_pollclosed_immediate_readsome(readfd, writefd, POLLHUP);
check_pollclosed_immediate_readnone(readfd, writefd, POLLHUP);
check_pollclosed_immediate_readsome(readfd, writefd, POLLHUP);
check_pollclosed_immediate_readnone(readfd, writefd, POLLHUP);
check_pollclosed_immediate_write(writefd, readfd, POLLHUP, EIO);
check_pollclosed_immediate_write(writefd, readfd, POLLHUP, EIO);
check_pollclosed_immediate_readsome(readfd, writefd, POLLHUP);
check_pollclosed_immediate_readnone(readfd, writefd, POLLHUP);
check_pollclosed_immediate_write(writefd, readfd, POLLHUP, EIO);
check_pollclosed_immediate_write(writefd, readfd, POLLHUP, EIO);
check_pollclosed_immediate_readsome(readfd, writefd, POLLHUP);
check_pollclosed_immediate_readnone(readfd, writefd, POLLHUP);
ATF_REQUIRE_EQ_MSG((pfd.revents & (POLLHUP|POLLOUT)), POLLHUP,
pfd.revents, POLLHUP, POLLOUT);
ATF_REQUIRE_EQ_MSG((pfd.revents & (POLLHUP|POLLOUT)), POLLHUP,
pfd.revents, POLLHUP, POLLOUT);
ATF_CHECK_EQ_MSG((pfd.revents & (POLLHUP|POLLIN|POLLOUT)), expected,
pfd.revents, expected, POLLOUT, POLLHUP, POLLIN);
pfd.events = POLLIN | POLLHUP | POLLOUT;
check_pollclosed_delayed_write(writefd, readfd, POLLHUP, EIO);
ATF_CHECK_EQ_MSG((pfd.revents & (POLLHUP|POLLIN|POLLOUT)),
pfd.revents, pollhup|POLLIN, POLLHUP, POLLIN, POLLOUT);
ATF_CHECK_EQ_MSG((pfd.revents & (POLLHUP|POLLIN|POLLOUT)),
pfd.revents, pollhup|POLLIN, POLLHUP, POLLIN, POLLOUT);
check_pollclosed_delayed_read(readfd, writefd, POLLHUP);
pfd.events = POLLIN | POLLHUP | POLLOUT;
ATF_CHECK_EQ_MSG((pfd.revents & (POLLHUP|POLLIN|POLLOUT)), expected,
pfd.revents, expected, POLLOUT, POLLHUP, POLLIN);
ATF_CHECK_EQ_MSG((pfd.revents & (POLLHUP|POLLIN|POLLOUT)),
pfd.revents, pollhup|POLLIN, POLLHUP, POLLIN, POLLOUT);
pfd.events = POLLIN | POLLHUP | POLLOUT;
ATF_CHECK_EQ_MSG((pfd.revents & (POLLHUP|POLLIN|POLLOUT)),
pfd.revents, pollhup|POLLIN, POLLHUP, POLLIN, POLLOUT);
ATF_CHECK_EQ_MSG((pfd.revents & (POLLHUP|POLLIN|POLLOUT)),
pfd.revents, pollhup|POLLIN, POLLHUP, POLLIN, POLLOUT);
ATF_CHECK_EQ_MSG((pfd.revents & (POLLHUP|POLLIN|POLLOUT)),
pfd.revents, pollhup|POLLIN, POLLHUP, POLLIN, POLLOUT);
POLLOUT | POLLWRNORM | POLLWRBAND | POLLHUP;
POLLOUT | POLLWRNORM | POLLWRBAND | POLLHUP;
pfd[POLL_STDIN].revents & POLLHUP &&
pfd[POLL_NETIN].revents & POLLHUP &&
if (pfd[POLL_NETOUT].revents & POLLHUP) {
if (pfd[POLL_STDOUT].revents & POLLHUP)
if (fdp->revents & (POLLNVAL|POLLERR|POLLHUP))
fdp->events = POLLOUT|POLLNVAL|POLLERR|POLLHUP;
if (fdp->revents & (POLLNVAL|POLLERR|POLLHUP))
fds[0].events = POLLIN|POLLNVAL|POLLERR|POLLHUP;
fds[1].events = fds[2].events = POLLIN|POLLNVAL|POLLERR|POLLHUP;
if (set[1].revents & (POLLHUP|POLLNVAL))
pfd[1].events = POLLIN|POLLHUP;
if (pfd[1].revents & (POLLIN|POLLHUP)) {
pfd.events = POLLHUP | POLLIN;