cluster: fix call to undefined function
authorBen Noordhuis <info@bnoordhuis.nl>
Tue, 8 Nov 2011 07:29:25 +0000 (08:29 +0100)
committerBen Noordhuis <info@bnoordhuis.nl>
Tue, 8 Nov 2011 07:29:25 +0000 (08:29 +0100)
lib/cluster.js

index 589798e..01547d6 100644 (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();
     })