PEP 433: update the implementation

This commit is contained in:
Victor Stinner 2013-02-01 00:19:01 +01:00
parent 67c596c1b7
commit 2c9f128261
1 changed files with 2 additions and 0 deletions

View File

@ -532,12 +532,14 @@ open()
os.dup()
--------
* Windows: ``DuplicateHandle()`` [atomic]
* ``fcntl(fd, F_DUPFD_CLOEXEC)`` [atomic]
* ``dup()`` + ``os.set_cloexec(fd, True)`` [best-effort]
os.dup2()
---------
* ``fcntl(fd, F_DUP2FD_CLOEXEC, fd2)`` [atomic]
* ``dup3()`` with ``O_CLOEXEC`` flag [atomic]
* ``dup2()`` + ``os.set_cloexec(fd, True)`` [best-effort]