Skip to content

Commit 87387e8

Browse files
author
Julien Gilli
committed
src: fix backport for SIGINT crash fix on FreeBSD
61fe1fe backported b64983d 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 nodejs#9326.
1 parent d5b3224 commit 87387e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -2790,7 +2790,7 @@ static void SignalExit(int signo) {
27902790
struct sigaction sa;
27912791
memset(&sa, 0, sizeof(sa));
27922792
sa.sa_handler = SIG_DFL;
2793-
CHECK_EQ(sigaction(signo, &sa, nullptr), 0);
2793+
CHECK_EQ(sigaction(signo, &sa, NULL), 0);
27942794
#endif
27952795
raise(signo);
27962796
}

0 commit comments

Comments
 (0)