diff options
author | Jakub KulĂk <Kulikjak@gmail.com> | 2021-08-17 18:09:48 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-17 18:09:48 (GMT) |
commit | b1930bf75f276cd7ca08c4455298128d89adf7d1 (patch) | |
tree | 0f18730d1034cd5e33a84dd1e6e60a02c97a85f8 /Lib/subprocess.py | |
parent | 4b9a2dcf19e5d13c3bc2afea2de1f65cd994c699 (diff) | |
download | cpython-b1930bf75f276cd7ca08c4455298128d89adf7d1.zip cpython-b1930bf75f276cd7ca08c4455298128d89adf7d1.tar.gz cpython-b1930bf75f276cd7ca08c4455298128d89adf7d1.tar.bz2 |
bpo-44935: enable posix_spawn() on Solaris (GH-27795)
Enable posix_spawn() on Solaris
Diffstat (limited to 'Lib/subprocess.py')
-rw-r--r-- | Lib/subprocess.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/subprocess.py b/Lib/subprocess.py index 7a9ab5a..dd1174e 100644 --- a/Lib/subprocess.py +++ b/Lib/subprocess.py @@ -660,8 +660,9 @@ def _use_posix_spawn(): # os.posix_spawn() is not available return False - if sys.platform == 'darwin': - # posix_spawn() is a syscall on macOS and properly reports errors + if sys.platform in ('darwin', 'sunos5'): + # posix_spawn() is a syscall on both macOS and Solaris, + # and properly reports errors return True # Check libc name and runtime libc version |