Don't because the parent process is created by the web server (and that may not be rocket) and the web server can kill and restart processes at will. Have a separate background process make children. have the app simply queue tasks (using a task table for example) and have the background process pick-up the tasks and act on them.
On Feb 4, 4:08 pm, Martin <mbertol...@gmail.com> wrote: > Hi All, > > Sorry for the bother. I would like to consult if there is a way to > create a totally separated child process process unsing popen class > (subprocess module) from a controller. I would like to be able to > launch a new child process outside web2py execution environment when > an SOAP message arrives to the web2py server. I am planning to build > an web application to control process creation and termination. > > any help will be appreciated! > > Thanks and best regards, > Martin