[issue6721] Locks in python standard library should be sanitized on fork
Gregory P. Smith
report at bugs.python.org
Mon Jul 18 02:27:23 CEST 2011
Gregory P. Smith <greg at krypto.org> added the comment:
No Python thread is ever fork safe because the Python interpreter itself can never be made fork safe. Nor should anyone try to make the interpreter itself safe. It is too complex and effectively impossible to guarantee.
There is no general solution to this, fork and threading is simply broken in POSIX and no amount of duct tape outside of the OS kernel can fix it. My only desire is that we attempt to do the right thing when possible with the locks we know about within the standard library.
----------
priority: high -> normal
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6721>
_______________________________________
More information about the Python-bugs-list
mailing list