From eb68619f951fb3c3a77cd7afb029e75d221e886d Mon Sep 17 00:00:00 2001 From: Joyee Cheung Date: Fri, 1 Feb 2019 08:00:23 +0800 Subject: 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 Reviewed-By: Minwoo Jung Reviewed-By: Jeremiah Senkpiel --- src/node_internals.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/node_internals.h') 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& args) { args.GetReturnValue().Set(err); } -void Exit(const v8::FunctionCallbackInfo& args); +void WaitForInspectorDisconnect(Environment* env); void SignalExit(int signo); #ifdef __POSIX__ void RegisterSignalHandler(int signal, -- cgit v1.2.3