summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2010-10-14 15:05:38 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2010-10-14 15:05:38 (GMT)
commitb1c54967381062bccef7db574b8e84f48a0eca76 (patch)
tree61af78425836dcb0891283994152df9c0e1b6556 /Doc
parentf4061dac607d9bc2b3af0b72da5e8917428d869e (diff)
downloadcpython-b1c54967381062bccef7db574b8e84f48a0eca76.zip
cpython-b1c54967381062bccef7db574b8e84f48a0eca76.tar.gz
cpython-b1c54967381062bccef7db574b8e84f48a0eca76.tar.bz2
Issue #7523: Add SOCK_CLOEXEC and SOCK_NONBLOCK to the socket module,
where supported by the system. Patch by Nikita Vetoshkin.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/socket.rst15
1 files changed, 15 insertions, 0 deletions
diff --git a/Doc/library/socket.rst b/Doc/library/socket.rst
index d662457..cdfedc4 100644
--- a/Doc/library/socket.rst
+++ b/Doc/library/socket.rst
@@ -157,6 +157,21 @@ The module :mod:`socket` exports the following constants and functions:
:func:`socket`. (Only :const:`SOCK_STREAM` and :const:`SOCK_DGRAM` appear to be
generally useful.)
+.. data:: SOCK_CLOEXEC
+ SOCK_NONBLOCK
+
+ These two constants, if defined, can be combined with the socket types and
+ allow you to set some flags atomically (thus avoiding possible race
+ conditions and the need for separate calls).
+
+ .. seealso::
+
+ `Secure File Descriptor Handling <http://udrepper.livejournal.com/20407.html>`_
+ for a more thorough explanation.
+
+ Availability: Linux >= 2.6.27.
+
+ .. versionadded:: 3.2
.. data:: SO_*
SOMAXCONN