mirror of
https://github.com/python/cpython.git
synced 2025-07-30 06:34:15 +00:00
- Issue #2113: Fix error in subprocess.Popen if the select system call is
interrupted by a signal.
This commit is contained in:
parent
2fe77060eb
commit
f41406409e
2 changed files with 9 additions and 1 deletions
|
@ -1158,7 +1158,12 @@ class Popen(object):
|
||||||
|
|
||||||
input_offset = 0
|
input_offset = 0
|
||||||
while read_set or write_set:
|
while read_set or write_set:
|
||||||
rlist, wlist, xlist = select.select(read_set, write_set, [])
|
try:
|
||||||
|
rlist, wlist, xlist = select.select(read_set, write_set, [])
|
||||||
|
except select.error, e:
|
||||||
|
if e.args[0] == errno.EINTR:
|
||||||
|
continue
|
||||||
|
raise
|
||||||
|
|
||||||
if self.stdin in wlist:
|
if self.stdin in wlist:
|
||||||
# When select has indicated that the file is writable,
|
# When select has indicated that the file is writable,
|
||||||
|
|
|
@ -59,6 +59,9 @@ Library
|
||||||
urllib module in Python 3.0 to urllib.request, urllib.parse, and
|
urllib module in Python 3.0 to urllib.request, urllib.parse, and
|
||||||
urllib.error.
|
urllib.error.
|
||||||
|
|
||||||
|
- Issue #2113: Fix error in subprocess.Popen if the select system call is
|
||||||
|
interrupted by a signal.
|
||||||
|
|
||||||
Build
|
Build
|
||||||
-----
|
-----
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue