Author pitrou
Recipients Elad Lahav, gvanrossum, pitrou
Date 2020-02-26.20:02:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1582747374.83.0.872949143743.issue39763@roundup.psfhosted.org>
In-reply-to
Content
Note the original problem stems when you using "setup.py -j <NJOBS>".

The attached reproducer is a bit of a red herring, because indeed doing fork() + exec() in pure Python is too fragile.  That is why the standard subprocess does it in C.  The problem here is that the `distutils.spawn` module still has its hand-baked fork() + exec() pure Python code from the 1990s.

So the solution to the OP's actual problem should be to recode `distutils.spawn` using the subprocess module.

Original mailing-list discussion at:
https://mail.python.org/archives/list/python-dev@python.org/thread/PTJ3UAZNYBYBYQ4WLMSERZR2XIVWISLM/
History
Date User Action Args
2020-02-26 20:02:54pitrousetrecipients: + pitrou, gvanrossum, Elad Lahav
2020-02-26 20:02:54pitrousetmessageid: <1582747374.83.0.872949143743.issue39763@roundup.psfhosted.org>
2020-02-26 20:02:54pitroulinkissue39763 messages
2020-02-26 20:02:54pitroucreate