diff options
author | Steven Murdoch <Steven.Murdoch@cl.cam.ac.uk> | 2011-09-01 18:17:54 +0100 |
---|---|---|
committer | Steven Murdoch <Steven.Murdoch@cl.cam.ac.uk> | 2011-09-01 18:17:54 +0100 |
commit | f5df96c94f0c40e4bf55e4b4b843df85e9d90a71 (patch) | |
tree | d1ee09e70890a1cfa0558f02fd3dc5021e58dfe5 /changes | |
parent | 9f144144e383169ba6a0de78fde50c0d1f662116 (diff) | |
download | tor-f5df96c94f0c40e4bf55e4b4b843df85e9d90a71.tar tor-f5df96c94f0c40e4bf55e4b4b843df85e9d90a71.tar.gz |
Handle test case where fgets() sees EOF on the last read
On some platforms, with non-blocking IO, on EOF you first
get EAGAIN, and then on the second read you get zero bytes
and EOF is set. However on others, the EOF flag is set as
soon as the last byte is read. This patch fixes the test
case in the latter scenario.
Diffstat (limited to 'changes')
0 files changed, 0 insertions, 0 deletions