We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1cc0165 commit 52ac430Copy full SHA for 52ac430
select/select.py
@@ -37,6 +37,8 @@ def register(self, fd, eventmask=EPOLLIN|EPOLLPRI|EPOLLOUT, retval=None):
37
retval = fd
38
s = struct.pack(self.epoll_event, eventmask, retval)
39
r = epoll_ctl(self.epfd, EPOLL_CTL_ADD, fd, s)
40
+ if r == -1 and os.errno.get() == 17:
41
+ r = epoll_ctl(self.epfd, EPOLL_CTL_MOD, fd, s)
42
os.check_error(r)
43
44
def poll(self, timeout=-1):
0 commit comments