[issue17899] os.listdir() leaks FDs if invoked on FD pointing to a non-directory
Larry Hastings
report at bugs.python.org
Sat May 4 02:19:24 CEST 2013
Larry Hastings added the comment:
Patch attached. I don't know how to make fdopendir fail, so I had to do it by inspection.
While I was in there, I ifdef'd out the variable that should only be used if fdopendir is available.
----------
keywords: +patch
stage: needs patch -> patch review
Added file: http://bugs.python.org/file30120/larry.listdir.fd.leakage.bug.1.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17899>
_______________________________________
More information about the Python-bugs-list
mailing list