Using nohup or setsid in PHP as Fast CGI

drksd

New Member
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.\[code\]shell_exec("nohup /home/me/myscript.php");\[/code\]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!
 
Back
Top