Skip to content

Commit

Permalink
handle master uncaughtException. fixed #403
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 committed Aug 4, 2014
1 parent 7b77f09 commit 758d1d4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dispatch.js
Expand Up @@ -75,3 +75,8 @@ function forkSyncer() {
setTimeout(forkSyncer, 1000);
});
}

process.on('uncaughtException', function (err) {
console.error('[%s] [master:%s] master uncaughtException: %s', Date(), process.pid, err.stack);
console.error(err);
});

0 comments on commit 758d1d4

Please sign in to comment.