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

Commit

Permalink
src: fix backport for SIGINT crash fix on FreeBSD
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Julien Gilli committed Apr 14, 2015
1 parent f0ef597 commit f99eaef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit f99eaef

Please sign in to comment.