Commit c7406bbe authored by Guido Trotter's avatar Guido Trotter
Browse files

RetryOnSignal: handle socket error as well


Signed-off-by: default avatarGuido Trotter <ultrotter@google.com>
Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
parent 1c54156d
......@@ -570,7 +570,7 @@ def RetryOnSignal(fn, *args, **kwargs):
while True:
try:
return fn(*args, **kwargs)
except EnvironmentError, err:
except (EnvironmentError, socket.error), err:
if err.errno != errno.EINTR:
raise
except select.error, err:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment