[Zope] Re: zope fork in external method

2006-10-13 Thread Jonathan
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

[Zope] Re: zope fork in external method - mysql connection dropped

2006-10-16 Thread Daniel Lopez
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

[Zope] Re: zope fork in external method - mysql connection dropped

2006-10-16 Thread Tres Seaver
-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

Re: [Zope] Re: zope fork in external method - mysql connection dropped

2006-10-16 Thread Chris McDonough
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

Re: [Zope] Re: zope fork in external method - mysql connection dropped

2006-10-17 Thread Dieter Maurer
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