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.
select.epoll
1 parent 71457f7 commit 93933b5Copy full SHA for 93933b5
src/trio/_core/_io_epoll.py
@@ -200,7 +200,9 @@ class _EpollStatistics:
200
201
@attrs.define(eq=False, hash=False)
202
class EpollIOManager:
203
- _epoll: select.epoll = attrs.Factory(select.epoll)
+ # Using lambda here because otherwise crash on import with gevent monkey patching
204
+ # See https://github.com/python-trio/trio/issues/2848
205
+ _epoll: select.epoll = attrs.Factory(lambda: select.epoll())
206
# {fd: EpollWaiters}
207
_registered: defaultdict[int, EpollWaiters] = attrs.Factory(
208
lambda: defaultdict(EpollWaiters)
0 commit comments