Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2019-11-02 21:06:59 +0300
committerMyles Borins <mylesborins@google.com>2019-11-17 10:59:09 +0300
commitdb7deb6e7aef4ce8934836f6305f3fb3cdab2b76 (patch)
tree10cf678090fcd31a5530606de95bde0c88a8e06a /src/node_internals.h
parentcd233e3f1679e78207597557321f4f7088388aa3 (diff)
src: make WaitForInspectorDisconnect an exit hook
Run inspector cleanup code on Environment teardown. This is part of a series of changes to make embedding easier, by requiring fewer internal methods to build a fully functioning Node.js instance. PR-URL: https://github.com/nodejs/node/pull/30229 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Shelley Vohr <codebytere@gmail.com>
Diffstat (limited to 'src/node_internals.h')
-rw-r--r--src/node_internals.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/node_internals.h b/src/node_internals.h
index ecd217086f8..10ef3bf5ed2 100644
--- a/src/node_internals.h
+++ b/src/node_internals.h
@@ -90,7 +90,6 @@ void PrintCaughtException(v8::Isolate* isolate,
v8::Local<v8::Context> context,
const v8::TryCatch& try_catch);
-void WaitForInspectorDisconnect(Environment* env);
void ResetStdio(); // Safe to call more than once and from signal handlers.
#ifdef __POSIX__
void SignalExit(int signal, siginfo_t* info, void* ucontext);
@@ -321,6 +320,10 @@ void StartProfilers(Environment* env);
}
#endif // HAVE_INSPECTOR
+#ifdef __POSIX__
+static constexpr unsigned kMaxSignal = 32;
+#endif
+
bool HasSignalJSHandler(int signum);
#ifdef _WIN32