[issue17899] os.listdir() leaks FDs if invoked on FD pointing to a non-directory

Larry Hastings report at bugs.python.org
Tue Jul 23 05:56:00 CEST 2013


Larry Hastings added the comment:

Attached is a new patch for trunk, removing the #undef HAVE_FDOPENDIR debug scaffolding, and rearranging the lines of error handling so close doesn't clear the errno before we use it.

By cracky, while most days I do enjoy the exacting pedantry of the Python community, it sure can slow the process down sometimes.

----------
Added file: http://bugs.python.org/file31020/larry.listdir.fd.leakage.bug.3.patch

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


More information about the Python-bugs-list mailing list