Skip to content
Snippets Groups Projects
Commit 32366313 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

fix more interrupt system call

parent c3c86d89
No related branches found
No related tags found
No related merge requests found
......@@ -138,7 +138,7 @@ def temp_failure_retry(func, *args, **kwargs):
while True:
try:
return func(*args, **kwargs)
except (os.error, IOError), ex:
except (os.error, IOError, socket.error), ex:
if ex.errno == errno.EINTR:
continue
else:
......
......@@ -42,7 +42,7 @@ def temp_failure_retry(func, *args, **kwargs):
while True:
try:
return func(*args, **kwargs)
except (os.error, IOError), ex:
except (os.error, IOError, socket.error), ex:
if ex.errno == errno.EINTR:
continue
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment