...
This commit is contained in:
parent
1a42356f68
commit
333eb3534a
@ -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");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user