Skip to content

Commit

Permalink
[api] If worker is a fork, notify master that it's listening
Browse files Browse the repository at this point in the history
  • Loading branch information
mmalecki committed Dec 9, 2011
1 parent cf716d5 commit 768f074
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/forever/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ Worker.prototype.start = function (cb) {
// `listening` listener doesn't take error as the first parameter
//
cb && cb(null, sock);

//
// If we're a fork, notify master that server is set up and waiting for
// commands.
//
process.send && process.send('listening', sock);
});
});
};
Expand Down

0 comments on commit 768f074

Please sign in to comment.