title: Using nohup or setsid in PHP as Fast CGI
body: <p>I'm trying to do a potentially long background process in response to an incoming AJAX request, but using <code>nohup</code> or <code>setsid</code> via <code>shell_exec</code> causes the server to fork bomb. We use <code>suexec</code> and FastCGI, and when it bombs it took the entire server to a crawl.</p>
  
  <pre><code>shell_exec("nohup /home/me/myscript.php");
  </code></pre>
  
  <p>The script doesn't do anything lengthy right now, just outputs to an non-existant file (which never happens, because it blows up first)</p>
  
  <p>Thanks!</p>