diff options
author | teor <teor@torproject.org> | 2020-02-12 12:47:15 +1000 |
---|---|---|
committer | teor <teor@torproject.org> | 2020-02-13 00:00:41 +1000 |
commit | 3d1ef3b6f89e760b4340ba77e0b3db1246dc5c80 (patch) | |
tree | 2cc62a0f4ed8a74f60ae4b57533f3fe93008d751 /src/feature/control/control_cmd.c | |
parent | e0ea7407a4370c977ebbf0b70712c9e5ff7937fa (diff) | |
download | tor-3d1ef3b6f89e760b4340ba77e0b3db1246dc5c80.tar.gz tor-3d1ef3b6f89e760b4340ba77e0b3db1246dc5c80.zip |
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.
Diffstat (limited to 'src/feature/control/control_cmd.c')
0 files changed, 0 insertions, 0 deletions