Skip to content
  • teor's avatar
    err/log: Stop closing stderr and stdout during shutdown · 3d1ef3b6
    teor authored
    Closing these file descriptors can hide sanitiser logs.
    
    Instead, flush the logs before tor exits, using fsync().
    Some Windows environments don't have fsync(), so we check
    for it at compile time.
    
    Fixes bug 33087; bugfix on 0.4.1.6.
    3d1ef3b6