summaryrefslogtreecommitdiff
path: root/src/node_internals.h
diff options
context:
space:
mode:
authorJoyee Cheung <joyeec9h3@gmail.com>2019-02-01 08:00:23 +0800
committerDaniel Bevenius <daniel.bevenius@gmail.com>2019-02-06 05:36:35 +0100
commiteb68619f951fb3c3a77cd7afb029e75d221e886d (patch)
tree19a60c9dc17cfb792b4cc0b1dacedb3fa10609b4 /src/node_internals.h
parentd3ea63921f834d46b13e72a344d8c24833dc75d5 (diff)
downloadandroid-node-v8-eb68619f951fb3c3a77cd7afb029e75d221e886d.tar.gz
android-node-v8-eb68619f951fb3c3a77cd7afb029e75d221e886d.tar.bz2
android-node-v8-eb68619f951fb3c3a77cd7afb029e75d221e886d.zip
src: move process.reallyExit impl into node_process_methods.cc
Because the part that is shared by `process.reallyExit` and the Node.js teardown is `WaitForInspectorDisconnect()`, move that into node_internals.h instead, and move the C++ binding code into `node_process_methods.cc` since that's the only place it's needed. PR-URL: https://github.com/nodejs/node/pull/25860 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Minwoo Jung <minwoo@nodesource.com> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Diffstat (limited to 'src/node_internals.h')
-rw-r--r--src/node_internals.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_internals.h b/src/node_internals.h
index b34e6f90e7..c94be6ebe9 100644
--- a/src/node_internals.h
+++ b/src/node_internals.h
@@ -86,7 +86,7 @@ void GetSockOrPeerName(const v8::FunctionCallbackInfo<v8::Value>& args) {
args.GetReturnValue().Set(err);
}
-void Exit(const v8::FunctionCallbackInfo<v8::Value>& args);
+void WaitForInspectorDisconnect(Environment* env);
void SignalExit(int signo);
#ifdef __POSIX__
void RegisterSignalHandler(int signal,