[New-bugs-announce] [issue18763] subprocess: file descriptors should be closed after preexec_fn is called
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
nosy: gregory.p.smith, neologix, pitrou
stage: patch review
title: subprocess: file descriptors should be closed after preexec_fn is called
versions: Python 3.4
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce