summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--xlators/features/marker/utils/syncdaemon/syncdutils.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/xlators/features/marker/utils/syncdaemon/syncdutils.py b/xlators/features/marker/utils/syncdaemon/syncdutils.py
index 59defa711..b91b328b9 100644
--- a/xlators/features/marker/utils/syncdaemon/syncdutils.py
+++ b/xlators/features/marker/utils/syncdaemon/syncdutils.py
@@ -258,9 +258,10 @@ def eintr_wrap(func, exc, *a):
while True:
try:
return func(*a)
- except exc, ex:
- if not ex[0] == EINTR:
- raise GsyncdError(ex[1])
+ except exc:
+ ex = sys.exc_info()[1]
+ if not ex.args[0] == EINTR:
+ raise GsyncdError(ex.args[1])
def select(*a):
return eintr_wrap(oselect.select, oselect.error, *a)