[Python-checkins] peps: PEP 433: specify behaviour of old Linux kernels with SOCK_CLOEXEC

victor.stinner python-checkins at python.org
Sat Jan 26 01:23:37 CET 2013


http://hg.python.org/peps/rev/3a0c10d6409a
changeset: 4692:3a0c10d6409a
user: Victor Stinner <victor.stinner at gmail.com>
date: Sat Jan 26 01:22:05 2013 +0100
summary:
 PEP 433: specify behaviour of old Linux kernels with SOCK_CLOEXEC
files:
 pep-0433.txt | 7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/pep-0433.txt b/pep-0433.txt
--- a/pep-0433.txt
+++ b/pep-0433.txt
@@ -647,8 +647,9 @@
 we have to check that the flag is supported by calling ``fcntl()``. If
 it does not work, we have to set the flag using ``fcntl()``.
 
-XXX what is the behaviour on Linux older than 2.6.27
-XXX with SOCK_CLOEXEC? XXX
+On Linux older than 2.6.27, if the ``SOCK_CLOEXEC`` flag is set in the
+socket type, ``socket()`` or ``socketpair()`` fail and ``errno`` is set
+to ``EINVAL``.
 
 New functions:
 
@@ -657,7 +658,7 @@
 * ``accept4()``: available on Linux 2.6.28+ (and glibc 2.10)
 
 If ``accept4()`` is called on Linux older than 2.6.28, ``accept4()``
-returns ``-1`` (fail) and errno is set to ``ENOSYS``.
+returns ``-1`` (fail) and ``errno`` is set to ``ENOSYS``.
 
 
 Links
-- 
Repository URL: http://hg.python.org/peps


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /