Skip to content
This repository was archived by the owner on Apr 22, 2023. It is now read-only.

Commit f99eaef

Browse files
author
Julien Gilli
committedApr 14, 2015
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 #9326. Reviewed-By: Colin Ihrig <[email protected]> PR-URL: #14819

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)
This repository has been archived.