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
b0042000
Commit
b0042000
authored
Aug 25, 2013
by
Charles-François Natali
Browse files
Options
Browse Files
Download
Plain Diff
Merge.
parents
879a2137
4c533144
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
Lib/subprocess.py
Lib/subprocess.py
+5
-4
No files found.
Lib/subprocess.py
View file @
b0042000
...
...
@@ -1247,16 +1247,17 @@ class Popen(object):
os
.
close
(
fd
)
closed
.
add
(
fd
)
# Close all other fds, if asked for
if
close_fds
:
self
.
_close_fds
(
but
=
errpipe_write
)
if
cwd
is
not
None
:
os
.
chdir
(
cwd
)
if
preexec_fn
:
preexec_fn
()
# Close all other fds, if asked for - after
# preexec_fn(), which may open FDs.
if
close_fds
:
self
.
_close_fds
(
but
=
errpipe_write
)
if
env
is
None
:
os
.
execvp
(
executable
,
args
)
else
:
...
...
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