diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2010-05-21 20:13:12 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2010-05-21 20:13:12 (GMT) |
commit | b369358ee4a2ac39b9e276d765ee63f07049ecfc (patch) | |
tree | e681ec80563b9ccf762c4b109f3654cb4c78bbae /Lib/subprocess.py | |
parent | f978facc0e81bed85c990612401a63954542aebc (diff) | |
download | cpython-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.py | 2 |
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 |