aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Ken Payson <kpayson@google.com>2016-10-07 10:17:01 -0700
committerGravatar Ken Payson <kpayson@google.com>2016-10-07 10:17:01 -0700
commitd526e82a8340c5ad169a6bbb770cee23e1c0a441 (patch)
tree58db3302c0a8a14ceb6a4e0dc0bfd9d81aa2f4e0
parentbc544be002b864e808cbca54ea64fa9b68262302 (diff)
fix small bug
-rw-r--r--src/core/lib/iomgr/ev_poll_cv_posix.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/lib/iomgr/ev_poll_cv_posix.c b/src/core/lib/iomgr/ev_poll_cv_posix.c
index cb2c2ba824..1ea811e445 100644
--- a/src/core/lib/iomgr/ev_poll_cv_posix.c
+++ b/src/core/lib/iomgr/ev_poll_cv_posix.c
@@ -259,10 +259,10 @@ const grpc_event_engine_vtable* grpc_init_poll_cv_posix(void) {
int allow_specialized_wakeup_fd = grpc_allow_specialized_wakeup_fd;
int allow_pipe_wakeup_fd = grpc_allow_pipe_wakeup_fd;
grpc_global_cv_fd_table_init();
- grpc_has_wakeup_fd = 1;
grpc_allow_specialized_wakeup_fd = 0;
grpc_allow_pipe_wakeup_fd = 0;
grpc_wakeup_fd_global_init();
+ grpc_has_wakeup_fd = 1;
ev_poll_vtable = grpc_init_poll_posix();
if (!ev_poll_vtable) {
grpc_global_cv_fd_table_shutdown();
@@ -272,7 +272,6 @@ const grpc_event_engine_vtable* grpc_init_poll_cv_posix(void) {
grpc_global_cv_fd_table_init();
return NULL;
}
-
vtable = *ev_poll_vtable;
vtable.shutdown_engine = shutdown_engine;
return &vtable;