Author pitrou
Recipients Elad Lahav, gvanrossum, pitrou
Date 2020-02-26.20:02:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Note the original problem stems when you using " -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:
Date User Action Args
2020-02-26 20:02:54pitrousetrecipients: + pitrou, gvanrossum, Elad Lahav
2020-02-26 20:02:54pitrousetmessageid: <>
2020-02-26 20:02:54pitroulinkissue39763 messages
2020-02-26 20:02:54pitroucreate