mirror of https://github.com/python/cpython.git
gh-127481: Add `EPOLLWAKEUP` to the `select` module (GH-127482)
This commit is contained in:
parent
bc0f2e9459
commit
6bc3e830a5
|
@ -317,11 +317,17 @@ Edge and Level Trigger Polling (epoll) Objects
|
|||
+-------------------------+-----------------------------------------------+
|
||||
| :const:`EPOLLMSG` | Ignored. |
|
||||
+-------------------------+-----------------------------------------------+
|
||||
| :const:`EPOLLWAKEUP` | Prevents sleep during event waiting. |
|
||||
+-------------------------+-----------------------------------------------+
|
||||
|
||||
.. versionadded:: 3.6
|
||||
:const:`EPOLLEXCLUSIVE` was added. It's only supported by Linux Kernel 4.5
|
||||
or later.
|
||||
|
||||
.. versionadded:: next
|
||||
:const:`EPOLLWAKEUP` was added. It's only supported by Linux Kernel 3.5
|
||||
or later.
|
||||
|
||||
.. method:: epoll.close()
|
||||
|
||||
Close the control file descriptor of the epoll object.
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Add the ``EPOLLWAKEUP`` constant to the :mod:`select` module.
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue