From 3d1ef3b6f89e760b4340ba77e0b3db1246dc5c80 Mon Sep 17 00:00:00 2001 From: teor Date: Wed, 12 Feb 2020 12:47:15 +1000 Subject: 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. --- configure.ac | 1 + 1 file changed, 1 insertion(+) (limited to 'configure.ac') 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 \ -- cgit v1.2.3-54-g00ecf