mirror of
https://github.com/python/cpython.git
synced 2025-07-29 14:15:07 +00:00
[3.10] bpo-44935: enable posix_spawn() on Solaris (GH-27795) (GH-27800)
Enable posix_spawn() on Solaris
(cherry picked from commit b1930bf75f
)
Co-authored-by: Jakub Kulík <Kulikjak@gmail.com>
Automerge-Triggered-By: GH:gpshead
This commit is contained in:
parent
3f81e9628f
commit
826e059bb9
2 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue