Message362728
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/ |
|
| Date |
User |
Action |
Args |
| 2020-02-26 20:02:54 | pitrou | set | recipients:
+ pitrou, gvanrossum, Elad Lahav |
| 2020-02-26 20:02:54 | pitrou | set | messageid: <1582747374.83.0.872949143743.issue39763@roundup.psfhosted.org> |
| 2020-02-26 20:02:54 | pitrou | link | issue39763 messages |
| 2020-02-26 20:02:54 | pitrou | create | |
|