diff options
author | cjihrig <cjihrig@gmail.com> | 2017-04-28 01:26:17 +0300 |
---|---|---|
committer | cjihrig <cjihrig@gmail.com> | 2017-05-11 22:33:05 +0300 |
commit | b6001a2da5349de5eeddcc9e4cbcb930bfe6c29c (patch) | |
tree | 050f6e99b8e8c7bb6126b7b61273ccae38b17512 /src/signal_wrap.cc | |
parent | 9ce2271e813016685d1c8f9ab3e7ce6c85eee069 (diff) |
src: make SIGPROF message a real warning
This commit replaces a fprintf() with a call to
ProcessEmitWarning().
Refs: https://github.com/nodejs/node/issues/12706
PR-URL: https://github.com/nodejs/node/pull/12709
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'src/signal_wrap.cc')
-rw-r--r-- | src/signal_wrap.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/signal_wrap.cc b/src/signal_wrap.cc index ccd1b0ec411..1af98a9311f 100644 --- a/src/signal_wrap.cc +++ b/src/signal_wrap.cc @@ -92,7 +92,8 @@ class SignalWrap : public HandleWrap { if (signum == SIGPROF) { Environment* env = Environment::GetCurrent(args); if (env->inspector_agent()->IsStarted()) { - fprintf(stderr, "process.on(SIGPROF) is reserved while debugging\n"); + ProcessEmitWarning(env, + "process.on(SIGPROF) is reserved while debugging"); return; } } |