From 105d1787dc05e7f8785db1be7c84350bfde0bb98 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Tue, 8 Nov 2011 08:29:25 +0100 Subject: [PATCH] cluster: fix call to undefined function --- lib/cluster.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); })