summaryrefslogtreecommitdiffstats
path: root/Lib/subprocess.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2010-05-21 20:13:12 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2010-05-21 20:13:12 (GMT)
commitb369358ee4a2ac39b9e276d765ee63f07049ecfc (patch)
treee681ec80563b9ccf762c4b109f3654cb4c78bbae /Lib/subprocess.py
parentf978facc0e81bed85c990612401a63954542aebc (diff)
downloadcpython-b369358ee4a2ac39b9e276d765ee63f07049ecfc.zip
cpython-b369358ee4a2ac39b9e276d765ee63f07049ecfc.tar.gz
cpython-b369358ee4a2ac39b9e276d765ee63f07049ecfc.tar.bz2
Issue #8780: Fix a regression introduced by r78946 in subprocess on Windows
Ensure that stdout / stderr is inherited from the parent if stdout=PIPE / stderr=PIPE is not used.
Diffstat (limited to 'Lib/subprocess.py')
-rw-r--r--Lib/subprocess.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/subprocess.py b/Lib/subprocess.py
index adbee0b..ad6fd1f 100644
--- a/Lib/subprocess.py
+++ b/Lib/subprocess.py
@@ -843,7 +843,7 @@ class Popen(object):
# Process startup details
if startupinfo is None:
startupinfo = STARTUPINFO()
- if None not in (p2cread, c2pwrite, errwrite):
+ if -1 not in (p2cread, c2pwrite, errwrite):
startupinfo.dwFlags |= _subprocess.STARTF_USESTDHANDLES
startupinfo.hStdInput = p2cread
startupinfo.hStdOutput = c2pwrite