title: node.js fork function and passing arguments to child-process
body: <p>I pass arguments when create chlid-processes</p>
  
  <pre><code>if (cluster.isMaster) {
      for (var i = 0; i &lt; os.cpus().length; i++) {
          var new_worker_env = {};
          new_worker_env["WORKER_NAME"] = "worker" + i;
  
          var new_worker = cluster.fork(new_worker_env);
      }
  }
  </code></pre>
  
  <p>and then try to read it in childs:</p>
  
  <pre><code>if ( process.env["WORKER_NAME"] != undefined ) instance.name = process.env["WORKER_NAME"];
  </code></pre>
  
  <p>but this var isn't exist, why?</p>
  
  <p>Node v0.8.8</p>