[ZODB-Dev] ZEO and fork()

Pedro Ferreira jose.pedro.ferreira at cern.ch
Wed Jul 1 13:08:22 EDT 2009


Hello,

We have a script that does something like this:

import os
from ZEO.ClientStorage import ClientStorage

if os.fork()==0:
    print ClientStorage(('localhost',9675))
    print 'foo'
else:
    print 'child: %s' % os.getpid()

And it worked with ZODB 3.4, but we recently noticed that with 3.8 the
child process hangs. But if we import ClientStorage only inside the
process, it seems to work OK.
Is this supposed to happen? Is there a workaround?

Regards,

Pedro


-- 

José Pedro Ferreira
(Software Developer, Indico Project)

IT-UDS-AVC
CERN
Geneva, Switzerland

Office 513-R-042
Tel. +41 22 76 77159







More information about the ZODB-Dev mailing list