summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2016-09-11 15:45:32 +0300
committerBerker Peksag <berker.peksag@gmail.com>2016-09-11 15:45:32 +0300
commit38a8241e9ea88cf73e15f4e528a4e0861c0471e6 (patch)
tree1b3e60be1fe21de1ff7178c9359906cd7bed49c6
parentd012ce842450625a53277cf175f12fd1779ecea3 (diff)
downloadcpython-38a8241e9ea88cf73e15f4e528a4e0861c0471e6.tar.gz
Issue #20100: Clarify that passing flags to epoll() has no effect
-rw-r--r--Doc/library/select.rst8
1 files changed, 5 insertions, 3 deletions
diff --git a/Doc/library/select.rst b/Doc/library/select.rst
index 6cec9f764b..a465d25d8a 100644
--- a/Doc/library/select.rst
+++ b/Doc/library/select.rst
@@ -57,9 +57,7 @@ The module defines the following:
(Only supported on Linux 2.5.44 and newer.) Return an edge polling object,
which can be used as Edge or Level Triggered interface for I/O
- events. *sizehint* is deprecated and completely ignored. *flags* can be set
- to :const:`EPOLL_CLOEXEC`, which causes the epoll descriptor to be closed
- automatically when :func:`os.execve` is called.
+ events. *sizehint* and *flags* are deprecated and completely ignored.
See the :ref:`epoll-objects` section below for the methods supported by
epolling objects.
@@ -77,6 +75,10 @@ The module defines the following:
Support for the :keyword:`with` statement was added.
The new file descriptor is now non-inheritable.
+ .. deprecated:: 3.4
+ The *flags* parameter. ``select.EPOLL_CLOEXEC`` is used by default now.
+ Use :func:`os.set_inheritable` to make the file descriptor inheritable.
+
.. function:: poll()