[issue1068268] subprocess is not EINTR-safe

Matteo Bertini report at bugs.python.org
Fri Oct 17 18:30:23 CEST 2008


Matteo Bertini <matteob at naufraghi.net> added the comment:

Ups, forgot a _no_intr around select.select

Index: subprocess.py
===================================================================
--- subprocess.py	(revisione 19645)
+++ subprocess.py	(copia locale)
@@ -1178,7 +1178,7 @@
 
             input_offset = 0
             while read_set or write_set:
-                rlist, wlist, xlist = select.select(read_set, 
write_set, [])
+                rlist, wlist, xlist = _no_intr(select.select)(read_set, 
write_set, [])
 
                 if self.stdin in wlist:
                     # When select has indicated that the file is 
writable,

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1068268>
_______________________________________


More information about the Python-bugs-list mailing list