[issue874900] threading module can deadlock after fork
Antoine Pitrou
report at bugs.python.org
Wed Jul 23 17:29:26 CEST 2008
Antoine Pitrou <pitrou at free.fr> added the comment:
Greg, I'm not sure your improvement patch is right, since some code may
be holding a reference to the former _MainThread instance and expecting
it to still be part of the active threads container.
On the other hand there are things in the Thread class that may need
reinitializing after a fork (e.g. self.__block = Condition(Lock()), and
self.__ident = _get_ident() :-))... so perhaps your patch is a good
enough approximation of what is needed.
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue874900>
_______________________________________
More information about the Python-bugs-list
mailing list