Set errno in fake-failing child-process kill test

pull/24503/head
isaacs 2012-04-13 16:53:51 -07:00
parent b7b7b29f50
commit 93cefab1a3
1 changed files with 4 additions and 1 deletions

View File

@ -31,7 +31,10 @@ if (process.argv[2] === 'child') {
var error = {};
child.on('exit', function() {
child._internal = {
kill: function() { return -1; }
kill: function() {
global.errno = 42;
return -1;
}
};
child.once('error', function(err) {
error = err;