cluster: variable is not global
authorBrian White <mscdex@mscdex.net>
Thu, 15 Aug 2013 21:56:25 +0000 (17:56 -0400)
committerTrevor Norris <trev.norris@gmail.com>
Fri, 16 Aug 2013 00:19:18 +0000 (17:19 -0700)
lib/cluster.js

index 50a94f1..72060c4 100644 (file)
@@ -264,6 +264,7 @@ function masterInit() {
 
     process.on('internalMessage', function(message) {
       if (message.cmd !== 'NODE_DEBUG_ENABLED') return;
+      var key;
       for (key in cluster.workers)
         process._debugProcess(cluster.workers[key].process.pid);
     });