[issue44951] selector.EpollSelector: EPOLLEXCLUSIVE, round 2

2021-08-19 Thread David Gilman
David Gilman added the comment: Reflecting on this a bit I wonder if the best of all worlds is to have an EpollExclusiveSelector whose modify() implementation just unregisters and registers the file descriptor. -- ___ Python tracker

[issue44951] selector.EpollSelector: EPOLLEXCLUSIVE, round 2

2021-08-18 Thread David Gilman
David Gilman added the comment: I also played with making another whole subclass that has it on by default, see this package https://github.com/dgilman/selector-epoll-exclusive That class could have EPOLLEXCLUSIVE on by default but could raise NotImplemented if you try and modify() it.

[issue44951] selector.EpollSelector: EPOLLEXCLUSIVE, round 2

2021-08-18 Thread David Gilman
Change by David Gilman : -- keywords: +patch pull_requests: +26284 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27819 ___ Python tracker ___

[issue44951] selector.EpollSelector: EPOLLEXCLUSIVE, round 2

2021-08-18 Thread David Gilman
New submission from David Gilman : Note that this is a different approach from the one taken in https://bugs.python.org/issue35517 although the issue is still the same. I've written a patch that allows users of selector.EpollSelector to enable EPOLLEXCLUSIVE on their file descriptors. This