Issue #20100: Clarify that passing flags to epoll() has no effect

This commit is contained in:
Berker Peksag 2016-09-11 15:45:32 +03:00
parent 3d639b2c2e
commit 1c697a56ba

View file

@ -57,9 +57,7 @@ The module defines the following:
(Only supported on Linux 2.5.44 and newer.) Return an edge polling object, (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 which can be used as Edge or Level Triggered interface for I/O
events. *sizehint* is deprecated and completely ignored. *flags* can be set events. *sizehint* and *flags* are deprecated and completely ignored.
to :const:`EPOLL_CLOEXEC`, which causes the epoll descriptor to be closed
automatically when :func:`os.execve` is called.
See the :ref:`epoll-objects` section below for the methods supported by See the :ref:`epoll-objects` section below for the methods supported by
epolling objects. epolling objects.
@ -77,6 +75,10 @@ The module defines the following:
Support for the :keyword:`with` statement was added. Support for the :keyword:`with` statement was added.
The new file descriptor is now non-inheritable. 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() .. function:: poll()