[Python-checkins] peps: PEP 446: add section "Issues fixed in the subprocess module"

victor.stinner python-checkins at python.org
Sat Aug 10 01:05:12 CEST 2013


http://hg.python.org/peps/rev/18cd79b36bc1
changeset:   5042:18cd79b36bc1
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Sat Aug 10 01:02:09 2013 +0200
summary:
  PEP 446: add section "Issues fixed in the subprocess module"

files:
  pep-0446.txt |  27 +++++++++++++++++++++++++++
  1 files changed, 27 insertions(+), 0 deletions(-)


diff --git a/pep-0446.txt b/pep-0446.txt
--- a/pep-0446.txt
+++ b/pep-0446.txt
@@ -154,6 +154,33 @@
 data.
 
 
+Issues fixed in the subprocess module
+-------------------------------------
+
+Inherited file descriptors caused 4 issues in the ``subprocess``
+module:
+
+* `Issue #2320: Race condition in subprocess using stdin
+  <http://bugs.python.org/issue2320>`_ (created in 2008)
+* `Issue #3006: subprocess.Popen causes socket to remain open after
+  close <http://bugs.python.org/issue3006>`_ (created in 2008)
+* `Issue #7213: subprocess leaks open file descriptors between Popen
+  instances causing hangs <http://bugs.python.org/issue7213>`_
+  (created in 2009)
+* `Issue #12786: subprocess wait() hangs when stdin is closed
+  <http://bugs.python.org/issue12786>`_ (created in 2011)
+
+These issues were fixed in Python 3.2 by 4 different changes in the
+``subprocess`` module:
+
+* Pipes are now non-inheritable ;
+* The default value of the *close_fds* parameter is now ``True``,
+  with one exception on Windows: the default value is ``False`` if
+  at least one standard stream is replaced ;
+* A new *pass_fds* parameter has been added ;
+* Creation of a ``_posixsubprocess`` module implemented in C.
+
+
 Atomic Creation of non-inheritable File Descriptors
 ---------------------------------------------------
 

-- 
Repository URL: http://hg.python.org/peps


More information about the Python-checkins mailing list