[New-bugs-announce] [issue5179] subprocess leaves open fds on construction error
Georg Brandl
report at bugs.python.org
Sat Feb 7 21:04:40 CET 2009
New submission from Georg Brandl <georg at python.org>:
The test case below will (on Linux here) eventually quit with "OSError:
[Errno 24] Too many open files". I assume that some additional cleaning
up is in order.
-------------------------------------------------------------------
from subprocess import Popen, PIPE
while 1:
try:
Popen(['nonexisting'], stdout=PIPE, stderr=PIPE)
except OSError, err:
if err.errno != 2: # ignore "no such file"
raise
----------
components: Library (Lib)
messages: 81347
nosy: georg.brandl
priority: high
severity: normal
status: open
title: subprocess leaves open fds on construction error
versions: Python 2.6, Python 2.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5179>
_______________________________________
More information about the New-bugs-announce
mailing list