I made one tweak to the double-fork procedure, adding a waitpid call in the
grandparent process (the original zope thread) before it returns out of the
external method... the code then looked something like:
[...prefork code up to here...]
pid1 = os.fork()
if pid1 0:
#grandparent waits
,
as the grandchild makes a few calls back into zope, along with using some
information in the request, which I'd need to pass to the standalone
script. I'm happy the lazier approach worked.
Thanks to all...
-D
On Tue, 17 Oct 2006, Dieter Maurer wrote:
Daniel Lopez wrote at 2006-10-16 13
script exits, orphaning the python_script and allowing the grandparent to
proceed.
Maybe it's a little roundabout, but this seems to be cleaner and more
reliable so far. Comments?
-Daniel
On Tue, 17 Oct 2006, Daniel Lopez wrote:
You're good, my friend. I was hoping something like