changeset: 102405:af98e92f3b30 user: Benjamin Peterson date: Mon Jul 18 21:47:39 2016 -0700 files: Doc/library/select.rst Misc/NEWS Modules/selectmodule.c description: expose EPOLLRDHUP (closes #27567) diff -r d6a86018ab33 -r af98e92f3b30 Doc/library/select.rst --- a/Doc/library/select.rst Tue Jul 19 03:05:42 2016 +0000 +++ b/Doc/library/select.rst Mon Jul 18 21:47:39 2016 -0700 @@ -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 -r d6a86018ab33 -r af98e92f3b30 Misc/NEWS --- a/Misc/NEWS Tue Jul 19 03:05:42 2016 +0000 +++ b/Misc/NEWS Mon Jul 18 21:47:39 2016 -0700 @@ -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 -r d6a86018ab33 -r af98e92f3b30 Modules/selectmodule.c --- a/Modules/selectmodule.c Tue Jul 19 03:05:42 2016 +0000 +++ b/Modules/selectmodule.c Mon Jul 18 21:47:39 2016 -0700 @@ -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);