[New-bugs-announce] [issue18763] subprocess: file descriptors should be closed after preexec_fn is called

Charles-François Natali report at bugs.python.org
Sat Aug 17 00:23:55 CEST 2013


New submission from Charles-François Natali:

Currently, when passed close_fds=True, the subprocess module closes FDs before calling preexec_fn (if provided). This can be an issue if preexec_fn opens some file descriptors, which would then be inherited in the child process.
Here's a patch with test.

----------
components: Library (Lib)
keywords: needs review, patch
messages: 195434
nosy: gregory.p.smith, neologix, pitrou
priority: normal
severity: normal
stage: patch review
status: open
title: subprocess: file descriptors should be closed after preexec_fn is called
type: behavior
versions: Python 3.4

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


More information about the New-bugs-announce mailing list