]> git.ipfire.org Git - thirdparty/tor.git/commit
Fixed fgets_eagain unit test.
authorcypherpunks <cypherpunks@torproject.org>
Wed, 16 Jul 2014 07:50:09 +0000 (09:50 +0200)
committerNick Mathewson <nickm@torproject.org>
Wed, 16 Jul 2014 07:50:09 +0000 (09:50 +0200)
commit61507417919d88eb7ee2e3fc877f751be2a6bfa3
tree0b39e91e254afc45228d615e2e44c83606e24c0d
parent48d7fceee5e6041ccdd4316f51de0d6b5e1818ed
Fixed fgets_eagain unit test.

On a non-blocking pipe fgets sets EAGAIN when it encounters partial lines. No
error is set on full lines or EOF. EOF is reached when the writing end of the
pipe is closed. Partial lines and full lines are both returned by fgets, EOF
results in NULL.

Mention of this behaviour can be found in #1903 and #2045.
src/test/test_util.c