Skip to content

Commit

Permalink
Adds exit code (0.6 and 0.8) and signal (only in node 0.8) to rack wo…
Browse files Browse the repository at this point in the history
…rker-end events.
  • Loading branch information
dresende committed Jun 21, 2012
1 parent 925dbc7 commit b25e219
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rack.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand Down

0 comments on commit b25e219

Please sign in to comment.