aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core
diff options
context:
space:
mode:
authorGravatar David Klempner <klempner@google.com>2015-02-11 13:49:05 -0800
committerGravatar David Klempner <klempner@google.com>2015-02-11 13:50:12 -0800
commita10abbdbec8032b4641a59bdeeb75a1d320a0e0e (patch)
tree5f1b379bba8aa86697af58a6c288ea1968af686d /src/core
parentfdd42cfa4e02208e3767851735357d1969358afb (diff)
Clean up the epoll wakeup fd too.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/iomgr/pollset_multipoller_with_epoll.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/iomgr/pollset_multipoller_with_epoll.c b/src/core/iomgr/pollset_multipoller_with_epoll.c
index 9044892a92..a46dfe0520 100644
--- a/src/core/iomgr/pollset_multipoller_with_epoll.c
+++ b/src/core/iomgr/pollset_multipoller_with_epoll.c
@@ -149,12 +149,14 @@ static int multipoll_with_epoll_pollset_maybe_work(
static void multipoll_with_epoll_pollset_destroy(grpc_pollset *pollset) {
pollset_hdr *h = pollset->data.ptr;
+
close(h->epoll_fd);
gpr_free(h);
}
static void epoll_kick(grpc_pollset *pollset) {
pollset_hdr *h = pollset->data.ptr;
+ grpc_wakeup_fd_destroy(&h->wakeup_fd);
grpc_wakeup_fd_wakeup(&h->wakeup_fd);
}