Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adds exit code (0.6 and 0.8) and signal (only in node 0.8) to rack wo…

…rker-end events.
  • Loading branch information...
commit b25e219eff8c32685145e2d1b022f3cdcb32ffd9 1 parent 925dbc7
Diogo Resende authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/rack.js
4 lib/rack.js
View
@@ -56,8 +56,8 @@ Rack.prototype.start = function () {
this.emit("master-start", this);
cluster.on(worker_exit_event, (function (rack) {
- return function (worker) {
- rack.emit("worker-end", worker, rack);
+ return function (worker, code, signal) {
+ rack.emit("worker-end", worker, rack, typeof code != "undefined" ? code : worker.exitCode, signal);
};
})(this));
Please sign in to comment.
Something went wrong with that request. Please try again.