diff options
Diffstat (limited to 'src/node_process_methods.cc')
-rw-r--r-- | src/node_process_methods.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/node_process_methods.cc b/src/node_process_methods.cc index dd27329ee2..e53a5a7015 100644 --- a/src/node_process_methods.cc +++ b/src/node_process_methods.cc @@ -171,6 +171,12 @@ static void Kill(const FunctionCallbackInfo<Value>& args) { if (!args[0]->Int32Value(context).To(&pid)) return; int sig; if (!args[1]->Int32Value(context).To(&sig)) return; + // TODO(joyeecheung): white list the signals? + +#if HAVE_INSPECTOR + profiler::EndStartedProfilers(env); +#endif + int err = uv_kill(pid, sig); args.GetReturnValue().Set(err); } |