diff options
author | Julien Gilli <julien.gilli@joyent.com> | 2015-04-14 00:21:56 +0000 |
---|---|---|
committer | Julien Gilli <julien.gilli@joyent.com> | 2015-04-14 16:54:11 -0700 |
commit | f99eaefe75b47d4908c806d5c1b61042ff149b02 (patch) | |
tree | 13a753660a94d87f97f28a1d5b0e6728e87229c8 | |
parent | f0ef597e094f2519486e080897956389584876e4 (diff) | |
download | node-new-f99eaefe75b47d4908c806d5c1b61042ff149b02.tar.gz |
src: fix backport for SIGINT crash fix on FreeBSD
61fe1fe21ba281b05b90a632e2dad29eefb14a0a backported
b64983d77cc3ed2e4b585f3bfc8ed23802389a52 from io.js, but failed to
change nullptr to NULL, which lead to a build break on FreeBSD since the
current build system doesn't enable support for C++11.
This change replaces nullptr by NULL, and has been tested on
FreeBSD 10.1-RELEASE-p8.
Fixes #9326.
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
PR-URL: https://github.com/joyent/node/pull/14819
-rw-r--r-- | src/node.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node.cc b/src/node.cc index 972ca44d53..b8a5b4e756 100644 --- a/src/node.cc +++ b/src/node.cc @@ -2790,7 +2790,7 @@ static void SignalExit(int signo) { struct sigaction sa; memset(&sa, 0, sizeof(sa)); sa.sa_handler = SIG_DFL; - CHECK_EQ(sigaction(signo, &sa, nullptr), 0); + CHECK_EQ(sigaction(signo, &sa, NULL), 0); #endif raise(signo); } |