summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorteor <teor@torproject.org>2020-02-12 12:47:15 +1000
committerteor <teor@torproject.org>2020-02-13 00:00:41 +1000
commit3d1ef3b6f89e760b4340ba77e0b3db1246dc5c80 (patch)
tree2cc62a0f4ed8a74f60ae4b57533f3fe93008d751 /configure.ac
parente0ea7407a4370c977ebbf0b70712c9e5ff7937fa (diff)
downloadtor-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 'configure.ac')
-rw-r--r--configure.ac1
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 009d23aaa5..1a5b6817b6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -649,6 +649,7 @@ AC_CHECK_FUNCS(
explicit_bzero \
timingsafe_memcmp \
flock \
+ fsync \
ftime \
get_current_dir_name \
getaddrinfo \