[issue45021] Race condition in thread.py

0x0L report at bugs.python.org
Tue Aug 31 08:04:10 EDT 2021


0x0L <xavier.lacroze at gmail.com> added the comment:

In the last reproducing example, one can drop the .result() and just submit the task: we're not waiting on any result explicitly. It's the shutdown of the ProcessPoolExecutor that waits forever for the children to exit.

Generally speaking it's probably a bad idea to mix multi-thread and forks. See https://www.linuxprogrammingblog.com/threads-and-fork-think-twice-before-using-them

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45021>
_______________________________________


More information about the Python-bugs-list mailing list