From c7406bbe9e55b257a0069e598fea3b892d096230 Mon Sep 17 00:00:00 2001
From: Guido Trotter <ultrotter@google.com>
Date: Fri, 14 May 2010 16:54:25 +0100
Subject: [PATCH] RetryOnSignal: handle socket error as well

Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
---
 lib/utils.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/utils.py b/lib/utils.py
index d829b48e6..ec5172f9d 100644
--- a/lib/utils.py
+++ b/lib/utils.py
@@ -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:
-- 
GitLab