shell - Using nohup or setsid in PHP as Fast CGI -


i'm trying potentially long background process in response incoming ajax request, using nohup or setsid via shell_exec causes server fork bomb. use suexec , fastcgi, , when bombs took entire server crawl.

shell_exec("nohup /home/me/myscript.php"); 

the script doesn't lengthy right now, outputs non-existant file (which never happens, because blows first)

thanks!

i've seen warnings @ http://php.net/manual/en/intro.pcntl.php (although you're using nohup, knoẁ) warning forking webserver processes not safe way go. if background process needs starting, i'll create daemon / running job process can receive such requests (and hasn't got webserver), forks/nohups @ will.


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -