-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Shane Hathaway wrote: > On 04/10/2010 07:00 AM, Andreas Jung wrote: >> is it save to use the 'multiprocessing' module inside a BFG app? >> In particular I need to maintain a multiprocessing.Pool() instance... >> this is working at the first glance however the BFG app won't shutdown >> in a clean way when stopped through a keyboard interrupt. The apps >> hangs usually inside the following code: > > In general, it is not safe to use multiprocessing except at the top > level of any application. I would set up the multiple processes before > creating the WSGI stack or importing anything from any web framework. >
I am using the multiprocessing in several Zope 2 apps on the "product" layer without issues. So this is working usually. In this case I tried using multiprocessing at a much higher level.. Andreas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkvD52QACgkQCJIWIbr9KYw/YgCg2run+tsoXYvlsNQJMBDxCr3q 9sIAoOlqIHyfcPxSs5AZX88sNWILwVPN =qO39 -----END PGP SIGNATURE-----
<<attachment: lists.vcf>>
_______________________________________________ Repoze-dev mailing list Repoze-dev@lists.repoze.org http://lists.repoze.org/listinfo/repoze-dev