diff --git a/lib/cluster.js b/lib/cluster.js index 589798ece37..01547d60891 100644 --- a/lib/cluster.js +++ b/lib/cluster.js @@ -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(); })