]> granicus.if.org Git - python/commit
bpo-35537: subprocess uses os.posix_spawn in some cases (GH-11452)
authorVictor Stinner <vstinner@redhat.com>
Tue, 15 Jan 2019 23:02:35 +0000 (00:02 +0100)
committerGitHub <noreply@github.com>
Tue, 15 Jan 2019 23:02:35 +0000 (00:02 +0100)
commit9daecf37a571e98aaf43a387bcc9e41a7132f477
tree845a37230f2a9d6eed12a4fc84727394ad323d68
parenta37f52436f9aa4b9292878b72f3ff1480e2606c3
bpo-35537: subprocess uses os.posix_spawn in some cases (GH-11452)

The subprocess module can now use the os.posix_spawn() function
in some cases for better performance. Currently, it is only used on macOS
and Linux (using glibc 2.24 or newer) if all these conditions are met:

* executable path contains a directory
* close_fds=False
* preexec_fn, pass_fds, cwd, stdin, stdout, stderr
  and start_new_session parameters are not set

Co-authored-by: Joannah Nanjekye <nanjekyejoannah@gmail.com>
Doc/whatsnew/3.8.rst
Lib/subprocess.py
Lib/test/pythoninfo.py
Misc/NEWS.d/next/Library/2018-12-20-16-24-51.bpo-35537.z4E7aA.rst [new file with mode: 0644]