cluster: variable is not global

This commit is contained in:
Brian White 2013-08-15 17:56:25 -04:00 committed by Trevor Norris
parent e62d5964de
commit d70e6491ae

View 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);
});