mirror of https://github.com/nodejs/node.git
Set errno in fake-failing child-process kill test
parent
b7b7b29f50
commit
93cefab1a3
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue