[Python-checkins] peps: PEP 433: more references
victor.stinner
python-checkins at python.org
Wed Jan 30 12:55:51 CET 2013
http://hg.python.org/peps/rev/651cc14404e8
changeset: 4702:651cc14404e8
user: Victor Stinner <victor.stinner at gmail.com>
date: Wed Jan 30 12:54:34 2013 +0100
summary:
PEP 433: more references
files:
pep-0433.txt | 22 +++++++++++++++++++---
1 files changed, 19 insertions(+), 3 deletions(-)
diff --git a/pep-0433.txt b/pep-0433.txt
--- a/pep-0433.txt
+++ b/pep-0433.txt
@@ -632,6 +632,7 @@
* ``fcntl()``: ``F_DUPFD_CLOEXEC`` flag, available on Linux 2.6.24,
OpenBSD 5.0, FreeBSD 9.1, NetBSD 6.0. This flag is part of
POSIX.1-2008.
+ * ``fcntl()``: ``F_DUP2FD_CLOEXEC`` flag, available on FreeBSD 9.1.
* ``recvmsg()``: ``MSG_CMSG_CLOEXEC``, available on Linux 2.6.23,
NetBSD 6.0.
@@ -644,6 +645,9 @@
socket type, ``socket()`` or ``socketpair()`` fail and ``errno`` is set
to ``EINVAL``.
+On Windows XPS3, ``WSASocket()`` with with ``WSAEPROTOTYPE`` when
+``WSA_FLAG_NO_HANDLE_INHERIT`` flag is used.
+
New functions:
* ``dup3()``: available on Linux 2.6.27 (and glibc 2.9)
@@ -666,6 +670,8 @@
<https://bitbucket.org/pvl/gaeseries-tornado/src/c2671cea1842/tornado/win32_support.py>`_:
emulate fcntl(fd, F_SETFD, FD_CLOEXEC) using
``SetHandleInformation(fd, HANDLE_FLAG_INHERIT, 1)``
+ * `LKML: [PATCH] nextfd(2)
+ <https://lkml.org/lkml/2012/4/1/71>`_
Python issues:
@@ -689,14 +695,24 @@
* `#17070: PEP 433: Use the new cloexec to improve security and avoid
bugs <http://bugs.python.org/issue17070>`_
-Ruby:
+Other languages:
- * `Set FD_CLOEXEC for all fds (except 0, 1, 2)
+ * Perl sets the close-on-exec flag on newly created file decriptor if
+ their number is greater than ``$SYSTEM_FD_MAX`` (``$^F``).
+ See `$SYSTEM_FD_MAX documentation
+ <http://perldoc.perl.org/perlvar.html#%24SYSTEM_FD_MAX>`_. Perl does
+ this since the creation of Perl (it was already present in Perl 1).
+ * Ruby: `Set FD_CLOEXEC for all fds (except 0, 1, 2)
<http://bugs.ruby-lang.org/issues/5041>`_
- * `O_CLOEXEC flag missing for Kernel::open
+ * Ruby: `O_CLOEXEC flag missing for Kernel::open
<http://bugs.ruby-lang.org/issues/1291>`_: the
`commit was reverted later
<http://bugs.ruby-lang.org/projects/ruby-trunk/repository/revisions/31643>`_
+ * OCaml: `PR#5256: Processes opened using Unix.open_process* inherit
+ all opened file descriptors (including sockets)
+ <http://caml.inria.fr/mantis/view.php?id=5256>`_. OCaml has a
+ ``Unix.set_close_on_exec`` function.
+
Footnotes
=========
--
Repository URL: http://hg.python.org/peps
More information about the Python-checkins
mailing list