diff --git a/pep-0446.txt b/pep-0446.txt index c83c7eae4..4a8b512d1 100644 --- a/pep-0446.txt +++ b/pep-0446.txt @@ -27,7 +27,7 @@ The inheritance of file descriptors in child processes can be configured on each file descriptor using a *close-on-exec* flag. By default, the close-on-exec flag is not set. -On Windows, the close-on-exec flag is ``HANDLE_FLAG_INHERIT``. File +On Windows, the close-on-exec flag is the inverse of ``HANDLE_FLAG_INHERIT``. File descriptors are not inherited if the ``bInheritHandles`` parameter of the ``CreateProcess()`` function is ``FALSE``, even if the ``HANDLE_FLAG_INHERIT`` flag is set. If ``bInheritHandles`` is ``TRUE``, @@ -149,7 +149,7 @@ Other Changes The ``subprocess.Popen`` class must clear the close-on-exec flag of file descriptors of the ``pass_fds`` parameter. The flag is cleared in the -child process before executing the program, the change does not change +child process before executing the program; the change does not change the flag in the parent process. The close-on-exec flag must also be set on private file descriptors and