[issue10350] errno is read too late
Terry J. Reedy
report at bugs.python.org
Fri Nov 12 20:32:12 CET 2010
Terry J. Reedy <tjreedy at udel.edu> added the comment:
This stuff is hard to write automated tests for, hence there are none.
The patch is mostly straightforward: capture errno with new variable err at point of possible error when intervening calculation is needed before testing the value of errno. This seems like a good idea.
There is one relocation of memory freeing and the additions of
+ if (res >= 0)
+ break;
which I cannot evaluate.
----------
nosy: +terry.reedy
stage: -> patch review
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10350>
_______________________________________
More information about the Python-bugs-list
mailing list