aboutsummaryrefslogtreecommitdiff
path: root/src/test/tinytest_demo.c
diff options
context:
space:
mode:
authorSteven Murdoch <Steven.Murdoch@cl.cam.ac.uk>2011-09-01 13:09:38 +0100
committerSteven Murdoch <Steven.Murdoch@cl.cam.ac.uk>2011-09-01 14:15:54 +0100
commitcfa9ee5fe708539965f46a31b5d2abe4950179af (patch)
tree953e203a0834710140330a4cd6c1c4997148b10d /src/test/tinytest_demo.c
parenta500389904c992e492db0c219e5019ed44704c29 (diff)
downloadtor-cfa9ee5fe708539965f46a31b5d2abe4950179af.tar
tor-cfa9ee5fe708539965f46a31b5d2abe4950179af.tar.gz
Fix double-closing a stdio stream
After a stream reached eof, we fclose it, but then test_util_spawn_background_partial_read() reads from it again, which causes an error and thus another fclose(). Some platforms are fine with this, others (e.g. debian-sid-i386) trigger a double-free() error. The actual code used by Tor (log_from_pipe() and tor_check_port_forwarding()) handle this case correctly.
Diffstat (limited to 'src/test/tinytest_demo.c')
0 files changed, 0 insertions, 0 deletions