From 197d87e6efddc532cca5a213467adca231bac270 Mon Sep 17 00:00:00 2001 From: Michael Lumish Date: Fri, 7 Oct 2016 14:49:05 -0700 Subject: [PATCH] Fix how Node touches an internal core header --- src/node/ext/node_grpc.cc | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/src/node/ext/node_grpc.cc b/src/node/ext/node_grpc.cc index b8013c41938..75f23a6960f 100644 --- a/src/node/ext/node_grpc.cc +++ b/src/node/ext/node_grpc.cc @@ -42,8 +42,11 @@ #include "grpc/support/log.h" #include "grpc/support/time.h" +// TODO(murgatroid99): Remove this when the endpoint API becomes public #ifdef GRPC_UV +extern "C" { #include "src/core/lib/iomgr/pollset_uv.h" +} #endif #include "call.h" @@ -419,12 +422,6 @@ NAN_METHOD(SetLogVerbosity) { gpr_set_log_verbosity(severity); } -uv_signal_t signal_handle; - -void signal_callback(uv_signal_t *handle, int signum) { - uv_print_all_handles(uv_default_loop(), stderr); -} - void init(Local exports) { Nan::HandleScope scope; grpc_init(); @@ -439,10 +436,6 @@ void init(Local exports) { InitWriteFlags(exports); InitLogConstants(exports); - uv_signal_init(uv_default_loop(), &signal_handle); - uv_signal_start(&signal_handle, signal_callback, SIGUSR2); - uv_unref((uv_handle_t *)&signal_handle); - #ifdef GRPC_UV grpc_pollset_work_run_loop = 0; #endif