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 <rep...@bugs.python.org> <http://bugs.python.org/issue18763> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com