[Python-checkins] cpython: expose EPOLLRDHUP (closes #27567)
benjamin.peterson
python-checkins at python.org
Tue Jul 19 00:47:50 EDT 2016
https://hg.python.org/cpython/rev/af98e92f3b30
changeset: 102405:af98e92f3b30
user: Benjamin Peterson <benjamin at python.org>
date: Mon Jul 18 21:47:39 2016 -0700
summary:
expose EPOLLRDHUP (closes #27567)
files:
Doc/library/select.rst | 3 +++
Misc/NEWS | 2 ++
Modules/selectmodule.c | 2 +-
3 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/Doc/library/select.rst b/Doc/library/select.rst
--- a/Doc/library/select.rst
+++ b/Doc/library/select.rst
@@ -285,6 +285,9 @@
| :const:`EPOLLONESHOT` | Set one-shot behavior. After one event is |
| | pulled out, the fd is internally disabled |
+-----------------------+-----------------------------------------------+
+ | :const:`EPOLLRDHUP` | Stream socket peer closed connection or shut |
+ | | down writing half of connection. |
+ +-----------------------+-----------------------------------------------+
| :const:`EPOLLRDNORM` | Equivalent to :const:`EPOLLIN` |
+-----------------------+-----------------------------------------------+
| :const:`EPOLLRDBAND` | Priority data band can be read. |
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -26,6 +26,8 @@
Library
-------
+- Issue #27567: Expose the EPOLLRDHUP constant in the select module.
+
- Issue #1621: Avoid signed int negation overflow in the "audioop" module.
- Issue #27533: Release GIL in nt._isdir
diff --git a/Modules/selectmodule.c b/Modules/selectmodule.c
--- a/Modules/selectmodule.c
+++ b/Modules/selectmodule.c
@@ -2473,12 +2473,12 @@
PyModule_AddIntMacro(m, EPOLLPRI);
PyModule_AddIntMacro(m, EPOLLERR);
PyModule_AddIntMacro(m, EPOLLHUP);
+ PyModule_AddIntMacro(m, EPOLLRDHUP);
PyModule_AddIntMacro(m, EPOLLET);
#ifdef EPOLLONESHOT
/* Kernel 2.6.2+ */
PyModule_AddIntMacro(m, EPOLLONESHOT);
#endif
- /* PyModule_AddIntConstant(m, "EPOLL_RDHUP", EPOLLRDHUP); */
#ifdef EPOLLRDNORM
PyModule_AddIntMacro(m, EPOLLRDNORM);
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list