diff options
author | James Reggio <james.reggio@gmail.com> | 2016-04-07 04:00:04 +0300 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2016-04-14 22:39:36 +0300 |
commit | fb5f66a9fa7c6787fbceb552ec9f196e0d769ff0 (patch) | |
tree | 94a9df70bd9e9542229f285ed41b459efa95f98e /src/node_constants.cc | |
parent | ae18bbef48d87d9c641df85369f62cfd5ed8c250 (diff) |
src: add SIGINFO to supported signals
Though not a POSIX signal, SIGINFO is supported by BSD systems
(including Mac OS X) and is amongst the few signals that can be
triggered in a terminal via a simple key combination (CTRL-T).
On Linux, SIGINFO is an alias for SIGPWR; hence the defensive
conditionals in src/node.cc.
PR-URL: https://github.com/nodejs/node/pull/6093
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/node_constants.cc')
-rw-r--r-- | src/node_constants.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/node_constants.cc b/src/node_constants.cc index ed75b01fbf9..87443c95be1 100644 --- a/src/node_constants.cc +++ b/src/node_constants.cc @@ -716,6 +716,10 @@ void DefineSignalConstants(Local<Object> target) { NODE_DEFINE_CONSTANT(target, SIGPWR); #endif +#ifdef SIGINFO + NODE_DEFINE_CONSTANT(target, SIGINFO); +#endif + #ifdef SIGSYS NODE_DEFINE_CONSTANT(target, SIGSYS); #endif |