Let exit listeners know the exit code
This commit is contained in:
parent
fd70d30a9c
commit
4c514a723c
@ -570,8 +570,8 @@ global.console.assert = function(expression){
|
|||||||
global.Buffer = module.requireNative('buffer').Buffer;
|
global.Buffer = module.requireNative('buffer').Buffer;
|
||||||
|
|
||||||
process.exit = function (code) {
|
process.exit = function (code) {
|
||||||
process.emit("exit");
|
process.emit("exit", code || 0);
|
||||||
process.reallyExit(code);
|
process.reallyExit(code || 0);
|
||||||
};
|
};
|
||||||
|
|
||||||
process.kill = function (pid, sig) {
|
process.kill = function (pid, sig) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user