[issue6559] [PATCH]add pass_fds paramter to subprocess.Popen()

Zhigang Wang report at bugs.python.org
Fri Jul 24 09:56:37 CEST 2009


New submission from Zhigang Wang <w1z2g3 at gmail.com>:

The current subprocess.Popen() has a boolean close_fds parameter, which
cannot satisfy all the requirements. Eg. want to pass specific fd to
child process, but close others.

This patch adds a extra parameter pass_fds to subprocess.Popen's
__init__(). This parameter only effect when close_fds=True. When
close_fds=True, all fds in pass_fds will not closed before exec.

----------
components: Library (Lib)
files: python-subprocess-add-pass-fds.patch
keywords: patch
messages: 90871
nosy: zhigang
severity: normal
status: open
title: [PATCH]add pass_fds paramter to subprocess.Popen()
versions: Python 3.2
Added file: http://bugs.python.org/file14555/python-subprocess-add-pass-fds.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6559>
_______________________________________


More information about the Python-bugs-list mailing list