3 ms·
The "fix" also has a bug - `preexec_fn` causes nasal demons if the current process has threads. Fortunately, Python 3.2 added the `restore_signals` argument fo
by o11c 3y ago
The "fix" also has a bug - `preexec_fn` causes nasal demons if the current process has threads.
Fortunately, Python 3.2 added the `restore_signals` argument for exactly this purpose, and it is enabled by default. The (2010) in the title is quite relevant.
- interroboink 3y agoThough from the bug report, the fix did not make it into Python 2.7 ... still being used some places today — by other people, not me (: There is a backport fixed version though: https://code.google.com/archive/p/python-subprocess32/ https://code.google.com/archive/p/python-subprocess32/