From 615e3de57370a6c61da28773d27457421ae528c7 Mon Sep 17 00:00:00 2001 From: Sebastien Martini Date: Thu, 6 Jan 2011 16:15:37 +0100 Subject: Fixed select's error handling (contributed by zjes). --- python3/pyinotify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python3/pyinotify.py') 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 -- cgit v1.2.1