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

catch correct exception when interrupt system call

parent 4fdd42e3
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, socket.error), ex:
except (os.error, IOError, select.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, socket.error), ex:
except (os.error, IOError, select.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