summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Martini <seb@dbzteam.org>2011-01-06 16:15:37 +0100
committerSebastien Martini <seb@dbzteam.org>2011-01-06 16:15:37 +0100
commit615e3de57370a6c61da28773d27457421ae528c7 (patch)
tree56a6578f6780f2dbf602321ca89952e37e6a79c6
parentdf4b84ec315b1f4063f86d21b67628a2c1ea7285 (diff)
downloadpyinotify-615e3de57370a6c61da28773d27457421ae528c7.tar.gz
Fixed select's error handling (contributed by zjes).
-rwxr-xr-xpython3/pyinotify.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python3/pyinotify.py b/python3/pyinotify.py
index 10126d2..70e3442 100755
--- a/python3/pyinotify.py
+++ b/python3/pyinotify.py
@@ -1080,7 +1080,7 @@ class Notifier:
timeout = self._timeout
ret = self._pollobj.poll(timeout)
except select.error as err:
- if err.errno == errno.EINTR:
+ if err.args[0] == errno.EINTR:
continue # interrupted, retry
else:
raise