Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
3b8bfeff
Commit
3b8bfeff
authored
Mar 14, 2010
by
Florent Xicluna
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix an oversight in r78946 which causes failure in the subprocess module on Windows.
parent
da227045
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
Lib/subprocess.py
Lib/subprocess.py
+6
-6
No files found.
Lib/subprocess.py
View file @
3b8bfeff
...
...
@@ -681,11 +681,11 @@ class Popen(object):
restore_signals
,
start_new_session
)
if
mswindows
:
if
p2cwrite
is
not
None
:
if
p2cwrite
!=
-
1
:
p2cwrite
=
msvcrt
.
open_osfhandle
(
p2cwrite
.
Detach
(),
0
)
if
c2pread
is
not
None
:
if
c2pread
!=
-
1
:
c2pread
=
msvcrt
.
open_osfhandle
(
c2pread
.
Detach
(),
0
)
if
errread
is
not
None
:
if
errread
!=
-
1
:
errread
=
msvcrt
.
open_osfhandle
(
errread
.
Detach
(),
0
)
if
bufsize
==
0
:
...
...
@@ -909,11 +909,11 @@ class Popen(object):
# output pipe are maintained in this process or else the
# pipe will not close when the child process exits and the
# ReadFile will hang.
if
p2cread
is
not
None
:
if
p2cread
!=
-
1
:
p2cread
.
Close
()
if
c2pwrite
is
not
None
:
if
c2pwrite
!=
-
1
:
c2pwrite
.
Close
()
if
errwrite
is
not
None
:
if
errwrite
!=
-
1
:
errwrite
.
Close
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment