[New-bugs-announce] [issue6610] Subprocess descriptor debacle

Christian Heimes report at bugs.python.org
Fri Jul 31 02:27:04 CEST 2009


New submission from Christian Heimes <lists at cheimes.de>:

The subprocess module may suffer from a minor design flaw that is
described at http://unixwiz.net/techtips/remap-pipe-fds.html under the
heading "Descriptor Debacle". The problem can occur under rare
conditions when a subprocess is created from a Python daemon process.

Proposed solution:

Create a function os.duprange(*args) that takes one or more tuple pairs
of file descriptors. The function takes care of the necessary order and
dubbing of fds.

----------
components: Library (Lib)
keywords: easy, needs review
messages: 91118
nosy: christian.heimes
priority: normal
severity: normal
stage: needs patch
status: open
title: Subprocess descriptor debacle
type: resource usage
versions: Python 2.6, Python 2.7, Python 3.0, Python 3.1, Python 3.2

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


More information about the New-bugs-announce mailing list