[issue39763] distutils.spawn should use subprocess (hang in parallel builds on QNX)
Elad Lahav
report at bugs.python.org
Sat Feb 29 21:51:56 EST 2020
Elad Lahav <e2lahav at gmail.com> added the comment:
"setup.py doesn't use multiprocessing. multiprocessing is super complex. Would it be possible to write a reproducer which doesn't use multiprocessing?"
But the problem is with the handling of fork() by Python modules, and specifically with multi-threaded fork()s. Without multiple processes there is no issue.
And setup.py does use use multiple processes via a thread pool, where each thread calls fork(), if it detects that "make" was invoked with the parallel (-j) option.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39763>
_______________________________________
More information about the Python-bugs-list
mailing list