diff options
author | Pavel Feldman <pfeldman@chromium.org> | 2016-02-07 08:47:14 -0800 |
---|---|---|
committer | Ali Ijaz Sheikh <ofrobots@google.com> | 2016-05-30 09:05:46 -0700 |
commit | 84ad31fff369f0ec9a972c2a11cdefee316dab9d (patch) | |
tree | c95e0be1802b6f1d3e167f74901efe287e1b0887 /src/signal_wrap.cc | |
parent | ed2eacbc426ddbb57fa3faf35996b309d71b968e (diff) | |
download | node-new-84ad31fff369f0ec9a972c2a11cdefee316dab9d.tar.gz |
src,lib: v8-inspector support
This change introduces experimental v8-inspector support. This brings
the DevTools debug protocol allowing Node.js to be debugged with
Chrome DevTools native, or through other debuggers supporting that
protocol.
Partial WebSocket support, to the extent required by DevTools, is
included. This is derived from the implementation in Blink.
v8-inspector support can be disabled by the --without-inspector
configure flag.
PR-URL: https://github.com/nodejs/node/pull/6792
Reviewed-By: jasnell - James M Snell <jasnell@gmail.com>
Reviewed-By: addaleax - Anna Henningsen <anna@addaleax.net>
Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'src/signal_wrap.cc')
-rw-r--r-- | src/signal_wrap.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/signal_wrap.cc b/src/signal_wrap.cc index 3ee0251f9b..8d31dbf623 100644 --- a/src/signal_wrap.cc +++ b/src/signal_wrap.cc @@ -65,6 +65,15 @@ class SignalWrap : public HandleWrap { SignalWrap* wrap; ASSIGN_OR_RETURN_UNWRAP(&wrap, args.Holder()); int signum = args[0]->Int32Value(); +#if defined(__POSIX__) && defined(HAVE_INSPECTOR) + if (signum == SIGPROF) { + Environment* env = Environment::GetCurrent(args); + if (env->inspector_agent()->IsStarted()) { + fprintf(stderr, "process.on(SIGPROF) is reserved while debugging\n"); + return; + } + } +#endif int err = uv_signal_start(&wrap->handle_, OnSignal, signum); args.GetReturnValue().Set(err); } |