This commit is contained in:
Kovid Goyal 2017-09-08 10:15:00 +05:30
parent 1a42356f68
commit 333eb3534a
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -715,14 +715,13 @@ io_loop(void *data) {
fprintf(stderr, "The child %lu had its fd unexpectedly closed\n", children[i].id);
}
}
if (false) {
for (i = 0; i < self->count + EXTRA_FDS; i++) {
#ifdef DEBUG_POLL_EVENTS
for (i = 0; i < self->count + EXTRA_FDS; i++) {
#define P(w) if (fds[i].revents & w) printf("i:%lu %s\n", i, #w);
P(POLLIN); P(POLLPRI); P(POLLOUT); P(POLLERR); P(POLLHUP); P(POLLNVAL);
P(POLLIN); P(POLLPRI); P(POLLOUT); P(POLLERR); P(POLLHUP); P(POLLNVAL);
#undef P
}
}
#endif
} else if (ret < 0) {
if (errno != EAGAIN && errno != EINTR) {
perror("Call to poll() failed");