mirror of https://github.com/lukechilds/node.git
Browse Source
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>v1.8.0-commit
Fedor Indutny
10 years ago
2 changed files with 24 additions and 0 deletions
@ -0,0 +1,12 @@ |
|||
var assert = require('assert'); |
|||
var child_process = require('child_process'); |
|||
|
|||
// NOTE: Was crashing on FreeBSD
|
|||
var cp = child_process.spawn(process.execPath, [ |
|||
'-e', |
|||
'process.kill(process.pid, "SIGINT")' |
|||
]); |
|||
|
|||
cp.on('exit', function(code) { |
|||
assert.notEqual(code, 0); |
|||
}); |
Loading…
Reference in new issue