src: reset signal handler to SIG_DFL on FreeBSD
authorFedor Indutny <fedor@indutny.com>
Fri, 20 Mar 2015 05:03:34 +0000 (22:03 -0700)
committerFedor Indutny <fedor@indutny.com>
Fri, 20 Mar 2015 21:10:35 +0000 (14:10 -0700)
commitb64983d77cc3ed2e4b585f3bfc8ed23802389a52
treef12fb074a22aecaa58040671e706b470a176b4b0
parent6fc5e953547bfbdf97bc380d4bfc471e3378fad9
src: reset signal handler to SIG_DFL on FreeBSD

FreeBSD has a nasty bug with SA_RESETHAND reseting the SA_SIGINFO,
that is in turn set for a libthr wrapper. This leads to a crash.
Work around the issue by manually setting SIG_DFL in the signal
handler.

Fix: https://github.com/joyent/node/issues/9326
PR-URL: https://github.com/iojs/io.js/pull/1218
Reviewed-By: Johan Bergström <bugs@bergstroem.nu>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
src/node.cc
test/parallel/test-regress-GH-node-9326.js [new file with mode: 0644]