POLLHUP
return POLLHUP;
if (poll_bits & POLLHUP)
if ((req->cqe.res & (POLLHUP | POLLRDHUP)) && v != 1)
fds[0].events = POLLIN | POLLERR | POLLHUP;
if (fds[0].revents & POLLHUP) {
if (pfds[0].revents & POLLHUP) {
if (pfds[1].revents & POLLHUP) {
int pos = fdarray__add(&evlist->pollfd, fd, revent | POLLERR | POLLHUP, flags);
sock_pos = fdarray__add(&fda, sock_fd, POLLIN|POLLERR|POLLHUP, 0);
file_pos = fdarray__add(&fda, conf_fd, POLLIN|POLLERR|POLLHUP, 0);
signal_pos = fdarray__add(&fda, signal_fd, POLLIN|POLLERR|POLLHUP, 0);
POLLIN | POLLERR | POLLHUP, fdarray_flag__nonfilterable);
if (fdarray__filter(pollfd, POLLERR | POLLHUP,
if (pollfd->entries[ctlfd_pos].revents & POLLHUP) {
if (fdarray__filter(&thread->pollfd, POLLERR | POLLHUP,
if (evlist__filter_pollfd(evlist, POLLERR | POLLHUP | POLLNVAL) == 0)
pfds[num_pfds].events = POLLIN | POLLERR | POLLHUP | POLLNVAL;
.events = POLLIN | POLLERR | POLLHUP | POLLNVAL,
if (revents & (POLLHUP | POLLERR | POLLNVAL)) {
FDA_ADD(2, 35, POLLHUP, 3);
FDA_CHECK(2, 35, POLLHUP);
nr_fds = fdarray__filter(fda, POLLHUP, NULL, NULL);
fdarray__init_revents(fda, POLLHUP);
nr_fds = fdarray__filter(fda, POLLHUP, NULL, NULL);
fdarray__init_revents(fda, POLLHUP);
nr_fds = fdarray__filter(fda, POLLHUP, NULL, NULL);
fdarray__init_revents(fda, POLLHUP);
nr_fds = fdarray__filter(fda, POLLHUP, NULL, NULL);
if (entries[ctlfd_pos].revents & (POLLHUP | POLLERR))
return (pfds.revents & ~(POLLHUP | POLLERR)) ? -1 : 0;
ASSERT_TRUE(pfds[0].revents & POLLHUP);
ASSERT_TRUE(!!(fds.revents & POLLHUP));
if (fds.revents & POLLHUP)
ASSERT_TRUE(!!(fds.revents & POLLHUP));
if (fds.revents & POLLHUP)
fds.events = POLLHUP;
ASSERT_TRUE(!!(fds.revents & POLLHUP));
ASSERT_FALSE(!!(fds.revents & POLLHUP));
if (fds.revents & POLLHUP)
fds.events = POLLHUP;
ASSERT_TRUE(!!(fds.revents & POLLHUP));
ASSERT_FALSE(!!(fds.revents & POLLHUP));
pollfd.events = POLLHUP;
EXPECT_GT((pollfd.revents & POLLHUP) ?: 0, 0);
pollfd.events = POLLHUP;
EXPECT_GT((pollfd.revents & POLLHUP) ?: 0, 0);
POLLHUP | POLLRDHUP;
if (fds.revents & (POLLHUP | POLLRDHUP))
POLLRDHUP | POLLHUP;