Fix how Node touches an internal core header

This commit is contained in:
Michael Lumish 2016-10-07 14:49:05 -07:00
parent 84505a9335
commit b9a367290c
1 changed files with 3 additions and 10 deletions

View File

@ -42,8 +42,11 @@
#include "grpc/support/log.h" #include "grpc/support/log.h"
#include "grpc/support/time.h" #include "grpc/support/time.h"
// TODO(murgatroid99): Remove this when the endpoint API becomes public
#ifdef GRPC_UV #ifdef GRPC_UV
extern "C" {
#include "src/core/lib/iomgr/pollset_uv.h" #include "src/core/lib/iomgr/pollset_uv.h"
}
#endif #endif
#include "call.h" #include "call.h"
@ -419,12 +422,6 @@ NAN_METHOD(SetLogVerbosity) {
gpr_set_log_verbosity(severity); 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) { void init(Local<Object> exports) {
Nan::HandleScope scope; Nan::HandleScope scope;
grpc_init(); grpc_init();
@ -439,10 +436,6 @@ void init(Local<Object> exports) {
InitWriteFlags(exports); InitWriteFlags(exports);
InitLogConstants(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 #ifdef GRPC_UV
grpc_pollset_work_run_loop = 0; grpc_pollset_work_run_loop = 0;
#endif #endif