Skip to content
Snippets Groups Projects
Commit 5fa1c3fb authored by David Klempner's avatar David Klempner
Browse files

Destroy the wakeup fd in the right function

parent a10abbdb
No related branches found
No related tags found
No related merge requests found
...@@ -149,14 +149,13 @@ static int multipoll_with_epoll_pollset_maybe_work( ...@@ -149,14 +149,13 @@ static int multipoll_with_epoll_pollset_maybe_work(
static void multipoll_with_epoll_pollset_destroy(grpc_pollset *pollset) { static void multipoll_with_epoll_pollset_destroy(grpc_pollset *pollset) {
pollset_hdr *h = pollset->data.ptr; pollset_hdr *h = pollset->data.ptr;
grpc_wakeup_fd_destroy(&h->wakeup_fd);
close(h->epoll_fd); close(h->epoll_fd);
gpr_free(h); gpr_free(h);
} }
static void epoll_kick(grpc_pollset *pollset) { static void epoll_kick(grpc_pollset *pollset) {
pollset_hdr *h = pollset->data.ptr; pollset_hdr *h = pollset->data.ptr;
grpc_wakeup_fd_destroy(&h->wakeup_fd);
grpc_wakeup_fd_wakeup(&h->wakeup_fd); grpc_wakeup_fd_wakeup(&h->wakeup_fd);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment