Browse Source

src: fix backport for SIGINT crash fix on FreeBSD

61fe1fe21b backported
b64983d77c 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
v0.12.3-release
Julien Gilli 10 years ago
parent
commit
f99eaefe75
  1. 2
      src/node.cc

2
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);
}

Loading…
Cancel
Save