[issue35537] use os.posix_spawn in subprocess
STINNER Victor
report at bugs.python.org
Sun Jan 6 19:13:23 EST 2019
STINNER Victor <vstinner at redhat.com> added the comment:
I wrote PR 11452 which is based on PR 11242 but adds support for 'env' and 'restore_signals' parameters and checks the operating system and libc version to decide if posix_spawn() can be used by subprocess.
In my implementation, posix_spawn() is only used on macOS and glibc 2.26 or newer (and glibc 2.24 and newer on Linux).
According to Alexey Izbyshev, musl should be safe as well, but I don't know how to test musl on my Fedora, nor how to check if Python is linked to musl, nor what is the minimum musl version which is safe.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35537>
_______________________________________
More information about the Python-bugs-list
mailing list