cluster: fix call to undefined function

This commit is contained in:
Ben Noordhuis 2011-11-08 08:29:25 +01:00
parent 69d3bf1068
commit 105d1787dc

View File

@ -80,7 +80,7 @@ function startMaster() {
process.on('uncaughtException', function(e) {
// Quickly try to kill all the workers.
// TODO: be session leader - will cause auto SIGHUP to the children.
cluster.eachWorker(function(worker) {
eachWorker(function(worker) {
debug("kill worker " + worker.pid);
worker.kill();
})