Skip to content
  • Steven Murdoch's avatar
    Fix double-closing a stdio stream · cfa9ee5f
    Steven Murdoch authored
    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.
    cfa9ee5f