[issue18174] Make regrtest with --huntrleaks check for fd leaks
Antoine Pitrou
report at bugs.python.org
Tue Jul 29 20:31:43 CEST 2014
Antoine Pitrou added the comment:
fstat() can do I/O, or can fail for other reasons. If you don't want to create a new fd, I think you can do dup2(fd, fd).
I don't understand the reason for the following code:
+ def check_handle_deltas(deltas):
+ return abs(sum(deltas)) >= min(3, len(deltas))
Can you add a comment?
----------
nosy: +pitrou
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18174>
_______________________________________
More information about the Python-bugs-list
mailing list