> > Given the fact that tg/cherrypy is a complicated multi-threaded beast > > I'm not sure what the safest way is to launch a separate python > > process upon receiving a request. I can't use the scheduler because > > the process to be launched depends on the request. Is os.system good > > enough? Or one needs popen/fork/etc? I'm being extra cautious because > > with apache/mod_python it was a hell of a complicated thing to get > > this right, the correct way depended on whether apache is running as > > mpm or not, etc, and I don't know tg/cherrypy to this detail. > > > > Any ideas? > > Use the subprocess module. > > Diez
Okay, I know, but what is not clear is how tg/cherrypy works, for example if a child process handling a request starts my new process P via Popen and I don't want tg/cherrypy to wait for it to finish in other words the execution of my controller should continue after launching process P, then can I be guaranteed that tg/cherrypy will not decide to kill it's child that started process P and thereby also kill that? This can happen with apache but if you tell me that tg/cherrypy is different that would be cool. Cheers, Daniel --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears?hl=en -~----------~----~----~----~------~----~------~--~---

