Unverified Commit 3d1ef3b6 authored byBrowse files
err/log: Stop closing stderr and stdout during shutdown
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.