Pls keep your posts on the list - so that others can help and so that
others can search for problems/solutions!
- Original Message -
From: "Daniel Lopez" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, October 13, 2006 12:13 PM
Subject: zope fork in external method
Jonat
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 f
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Daniel Lopez wrote:
>
> 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:
>
> [...prefor
You might also try running zope under runzope instead of under
zopectl. IIRC zopectl itself sets signal handlers and performs a
fork before starting zope, so the inherited environment may not be
what you think it is.
- C
On Oct 16, 2006, at 4:31 PM, Daniel Lopez wrote:
I made one tweak
Daniel Lopez wrote at 2006-10-16 13:31 -0700:
>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