From 6c5f1a29b3c9644b9952879e86688cdafeecd246 Mon Sep 17 00:00:00 2001 From: Ask Solem Date: Tue, 18 Nov 2014 22:59:54 +0000 Subject: [PATCH] epoll: Ignore permission errors at unregister Conflicts: kombu/utils/eventio.py --- kombu/utils/eventio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kombu/utils/eventio.py b/kombu/utils/eventio.py index 660acf87..10e9aa66 100644 --- a/kombu/utils/eventio.py +++ b/kombu/utils/eventio.py @@ -80,7 +80,7 @@ class _epoll(object): except (socket.error, ValueError, KeyError, TypeError): pass except (IOError, OSError) as exc: - if getattr(exc, 'errno', None) != errno.ENOENT: + if getattr(exc, 'errno', None) not in (errno.ENOENT, errno.EPERM): raise def poll(self, timeout):