[Python-checkins] r64756 - in python/trunk: Lib/subprocess.py Misc/NEWS
gregory.p.smith
python-checkins at python.org
Sun Jul 6 09:16:41 CEST 2008
Author: gregory.p.smith
Date: Sun Jul 6 09:16:40 2008
New Revision: 64756
Log:
- Issue #2113: Fix error in subprocess.Popen if the select system call is
interrupted by a signal.
Modified:
python/trunk/Lib/subprocess.py
python/trunk/Misc/NEWS
Modified: python/trunk/Lib/subprocess.py
==============================================================================
--- python/trunk/Lib/subprocess.py (original)
+++ python/trunk/Lib/subprocess.py Sun Jul 6 09:16:40 2008
@@ -1158,7 +1158,12 @@
input_offset = 0
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:
# When select has indicated that the file is writable,
Modified: python/trunk/Misc/NEWS
==============================================================================
--- python/trunk/Misc/NEWS (original)
+++ python/trunk/Misc/NEWS Sun Jul 6 09:16:40 2008
@@ -59,6 +59,9 @@
urllib module in Python 3.0 to urllib.request, urllib.parse, and
urllib.error.
+- Issue #2113: Fix error in subprocess.Popen if the select system call is
+ interrupted by a signal.
+
Build
-----
More information about the Python-checkins
mailing list