Browse Source

Let exit listeners know the exit code

v0.7.4-release
isaacs 14 years ago
committed by Ryan Dahl
parent
commit
4c514a723c
  1. 4
      src/node.js

4
src/node.js

@ -570,8 +570,8 @@ global.console.assert = function(expression){
global.Buffer = module.requireNative('buffer').Buffer;
process.exit = function (code) {
process.emit("exit");
process.reallyExit(code);
process.emit("exit", code || 0);
process.reallyExit(code || 0);
};
process.kill = function (pid, sig) {

Loading…
Cancel
Save