diff options
author | RUANG (James Roy) <longjinyii@outlook.com> | 2024-12-04 13:30:38 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-04 13:30:38 (GMT) |
commit | 6bc3e830a518112a4e242217807681e3908602f4 (patch) | |
tree | 9d1ba86c27e50c458b5db0214eab65032761158c /Modules | |
parent | bc0f2e945993747c8b1a6dd66cbe902fddd5758b (diff) | |
download | cpython-6bc3e830a518112a4e242217807681e3908602f4.zip cpython-6bc3e830a518112a4e242217807681e3908602f4.tar.gz cpython-6bc3e830a518112a4e242217807681e3908602f4.tar.bz2 |
gh-127481: Add `EPOLLWAKEUP` to the `select` module (GH-127482)
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/selectmodule.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/selectmodule.c b/Modules/selectmodule.c index 6ced71c..e14e114 100644 --- a/Modules/selectmodule.c +++ b/Modules/selectmodule.c @@ -2715,6 +2715,10 @@ _select_exec(PyObject *m) #ifdef EPOLLMSG ADD_INT(EPOLLMSG); #endif +#ifdef EPOLLWAKEUP + /* Kernel 3.5+ */ + ADD_INT(EPOLLWAKEUP); +#endif #ifdef EPOLL_CLOEXEC ADD_INT(EPOLL_CLOEXEC); |