title: Child process variable doesn't die with process?
body: <p>I am spawning a process using <code>child_process</code>'s <code>.spawn</code> like this:</p>
  
  <pre><code>prc = spawn('java',  ['-jar', '-Xmx512M', 'jarfile.jar']);
  </code></pre>
  
  <p>Which works just fine, however when the process ends, the <code>prc</code> variable is still alive with all the data, for example:</p>
  
  <pre><code># console.log(prc.pid);
  # 32407
  </code></pre>
  
  <p>But if I try to check if that pid exists in my linux system:</p>
  
  <pre><code># kill -0 32407
  # bash: kill: (32407) - No such process
  </code></pre>
  
  <p>Is this simply the behaviour of <code>child_process.spawn</code>?
  Are there any workarounds?</p>