diff options
author | 2016-10-07 14:49:05 -0700 | |
---|---|---|
committer | 2016-10-07 14:49:05 -0700 | |
commit | 197d87e6efddc532cca5a213467adca231bac270 (patch) | |
tree | 56072f0070ec5c4b1ffa5f8491a44c97aeaffa26 /src/node/ext | |
parent | 2c287ca750c114c7230e57a1231d7e22863ab53d (diff) |
Fix how Node touches an internal core header
Diffstat (limited to 'src/node/ext')
-rw-r--r-- | src/node/ext/node_grpc.cc | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/src/node/ext/node_grpc.cc b/src/node/ext/node_grpc.cc index b8013c4193..75f23a6960 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<Object> exports) { Nan::HandleScope scope; grpc_init(); @@ -439,10 +436,6 @@ void init(Local<Object> 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 |