catch correct exception when interrupt system call

This commit is contained in:
Yann Leboulanger 2005-12-21 17:55:57 +00:00
parent 4fdd42e3e4
commit 993c09ec70
2 changed files with 2 additions and 2 deletions

View File

@ -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:

View File

@ -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: