summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorGregory P. Smith <greg@krypto.org>2012-10-10 10:34:47 (GMT)
committerGregory P. Smith <greg@krypto.org>2012-10-10 10:34:47 (GMT)
commit5591b02a4c96c4b530ee024e6b1581f5ba72945d (patch)
treec8618089fe0ad50bbc2783517d5eb71bfca7e3d3 /Misc
parenta256841b4bd923c5ac149a97318cde23c1086e39 (diff)
downloadcpython-5591b02a4c96c4b530ee024e6b1581f5ba72945d.zip
cpython-5591b02a4c96c4b530ee024e6b1581f5ba72945d.tar.gz
cpython-5591b02a4c96c4b530ee024e6b1581f5ba72945d.tar.bz2
Fixes Issue #16114: The subprocess module no longer provides a
misleading error message stating that args[0] did not exist when either the cwd or executable keyword arguments specified a path that did not exist. It now keeps track of if the child got as far as preexec and reports it if not back to the parent via a special "noexec" error message value in the error pipe so that the cwd can be blamed for a failed chdir instead of the exec of the executable being blamed instead. The executable is also always reported accurately when exec fails. Unittests enhanced to cover these cases.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS4
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 759a12c..9e1e96b 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -129,6 +129,10 @@ Core and Builtins
Library
-------
+- Issue #16114: The subprocess module no longer provides a misleading
+ error message stating that args[0] did not exist when either the cwd or
+ executable keyword arguments specified a path that did not exist.
+
- Issue #15756: subprocess.poll() now properly handles errno.ECHILD to
return a returncode of 0 when the child has already exited or cannot
be waited on.