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