]> granicus.if.org Git - python/commit
bpo-35537: subprocess can use posix_spawn with pipes (GH-11575)
authorVictor Stinner <vstinner@redhat.com>
Wed, 23 Jan 2019 18:00:39 +0000 (19:00 +0100)
committerGitHub <noreply@github.com>
Wed, 23 Jan 2019 18:00:39 +0000 (19:00 +0100)
commitf6243ac1e4828299fe5a8e943d7bd41cab1f34cd
treeb3f07e9908959d8f7e13f5084e86b837686dd15a
parentab67281e95de1a88c4379a75a547f19a8ba5ec30
bpo-35537: subprocess can use posix_spawn with pipes (GH-11575)

* subprocess.Popen can now also use os.posix_spawn() with pipes,
  but only if pipe file descriptors are greater than 2.
* Fix Popen._posix_spawn(): set '_child_created' attribute to True.
* Add Popen._close_pipe_fds() helper function to factorize the code.
Doc/whatsnew/3.8.rst
Lib/subprocess.py