[docs] [issue33079] subprocess: document the interaction between subprocess.Popen and os.set_inheritable

Simon Lipp report at bugs.python.org
Thu Mar 15 06:20:38 EDT 2018


New submission from Simon Lipp <keejaisi at hwold.net>:

>From current `os` documentation:

> A file descriptor has an “inheritable” flag which indicates if the file descriptor can be inherited by child processes

from current `subprocess` documentation:

> If close_fds is true, all file descriptors except 0, 1 and 2 will be closed before the child process is executed

It would be helpful to explicitly specify that subprocess.Popen does not takes into account the inheritable flag ; thas is, that inheritable fds will still be closed with open_fds = False, and that non-inheritable fds will still be kept with open_fds = True.

----------
assignee: docs at python
components: Documentation
messages: 313868
nosy: docs at python, sloonz
priority: normal
severity: normal
status: open
title: subprocess: document the interaction between subprocess.Popen and os.set_inheritable
versions: Python 3.6

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33079>
_______________________________________


More information about the docs mailing list