PEP 446: change os.dup2()
This commit is contained in:
parent
aed11c8530
commit
8dbcf87357
|
@ -450,8 +450,7 @@ Other Changes
|
|||
flag of file descriptors is unchanged in the parent process.
|
||||
|
||||
* ``os.dup2(fd, fd2)`` makes *fd2* inheritable if *fd2* is ``0``
|
||||
(stdin), ``1`` (stdout) or ``2`` (stderr) and *fd2* is different than
|
||||
*fd*.
|
||||
(stdin), ``1`` (stdout) or ``2`` (stderr).
|
||||
|
||||
Since Python should only create non-inheritable file descriptors, it is
|
||||
safe to use subprocess with the *close_fds* parameter set to ``False``.
|
||||
|
|
Loading…
Reference in New Issue