Nick Coghlan <ncogh...@gmail.com> added the comment: On further further reflection - I'm back to thinking my patch is correct. With the way fork is now implemented, the forking thread *always* holds the import lock, so the assumption in my patch regarding the meaning of the nesting level is correct.
It could use a comment in _PyImport_ReInitLock to better explain that, though. Unless there are any objections, I'll apply the fix to 2.7, 3.1 and 3.2. 2.6 is out of luck though (as per Barry's comment). I'll do a doc change for that, but I can't promise I'll get to it before the binary releases go out. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue9573> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com