title: Make child process spawned with system() keep running after parent gets kill signals and exits
body: <p>In a Linux/C++ library I'm launching a process via the system() call,</p>
  
  <pre><code>system("nohup processName &gt; /dev/null&amp;");
  </code></pre>
  
  <p>This seems to work fine with a simple test application that exits on it's own, but if I use this from inside of a Nodejs/V8 extension which gets a kill signal, the child process gets killed. I did find that running,</p>
  
  <pre><code>system("sudo nohup processName &gt; /dev/null&amp;");
  </code></pre>
  
  <p>With the sudoers file set up to not require a password manages to make this run even when the parent process (node) exits. Is there someway to entirely detach the child process so signals sent to the parent and the parent exiting have no effect on the child anymore? Preferably within the system() call and not something that requires getting the process ID and doing something with it.</p>