Skip to content

Commit

Permalink
Ignore EEXIST on epoll.register
Browse files Browse the repository at this point in the history
  • Loading branch information
ask committed May 16, 2012
1 parent 3fdbc06 commit 07a1fef
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion kombu/utils/eventio.py
Expand Up @@ -51,7 +51,11 @@ def __init__(self):
self._epoll = select.epoll()

def register(self, fd, events):
self._epoll.register(fd, events)
try:
self._epoll.register(fd, events)
except Exception, exc:
if get_errno(exc) != errno.EEXIST:
raise

def unregister(self, fd):
try:
Expand Down

0 comments on commit 07a1fef

Please sign in to comment.