PEP 433: update the implementation
This commit is contained in:
parent
67c596c1b7
commit
2c9f128261
|
@ -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]
|
||||
|
||||
|
|
Loading…
Reference in New Issue