aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Nicolas Noble <nicolasnoble@users.noreply.github.com>2015-07-01 14:40:13 -0700
committerGravatar Nicolas Noble <nicolasnoble@users.noreply.github.com>2015-07-01 14:40:13 -0700
commit4d86345ae6f1ff57112866761d6fb7f500dcff42 (patch)
tree271df259878c051765b51b3cb01cb21fd14d90c0 /src
parenta8c2d0259ffe26cfca731342a5553be3107a9936 (diff)
parentd2d596a21da7f219818f7386b52b91a0dca021dd (diff)
Merge pull request #2277 from ctiller/in-the-town-where-i-was-born-there-lived-a-man
Fix a bug in the multipoll on poll path where we use a file descripto…
Diffstat (limited to 'src')
-rw-r--r--src/core/iomgr/pollset_multipoller_with_poll_posix.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/iomgr/pollset_multipoller_with_poll_posix.c b/src/core/iomgr/pollset_multipoller_with_poll_posix.c
index cc062693a9..7b717bd159 100644
--- a/src/core/iomgr/pollset_multipoller_with_poll_posix.c
+++ b/src/core/iomgr/pollset_multipoller_with_poll_posix.c
@@ -179,6 +179,9 @@ static void multipoll_with_poll_pollset_maybe_work(
grpc_pollset_kick_consume(&pollset->kick_state, kfd);
}
for (i = 1; i < np; i++) {
+ if (h->watchers[i].fd == NULL) {
+ continue;
+ }
if (h->pfds[i].revents & (POLLIN | POLLHUP | POLLERR)) {
grpc_fd_become_readable(h->watchers[i].fd, allow_synchronous_callback);
}