[issue6721] Locks in python standard library should be sanitized on fork

Tomaž Šolc report at bugs.python.org
Tue Jul 5 15:04:43 CEST 2011


Tomaž Šolc <tomaz.solc at tablix.org> added the comment:

> We can't do that, it would break existing code.

I would argue that such code is already broken.

> What do you mean by helper threads?

multiprocessing uses threads behind the scenes to handle queue traffic and such for individual forked processes. It's something I also wasn't aware of until Antoine pointed it out. It also has its own implementation of atfork hooks in an attempt to handle the locking issue.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6721>
_______________________________________


More information about the Python-bugs-list mailing list