aboutsummaryrefslogtreecommitdiff
path: root/src/lib/err/torerr_sys.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2020-04-09 08:30:14 -0400
committerNick Mathewson <nickm@torproject.org>2020-04-09 08:30:14 -0400
commitc2aea6134a3333bbace155f37fcabf8a5b4e2744 (patch)
tree14be9ba0a8012edecb0136a94a4194ec3d47d6d3 /src/lib/err/torerr_sys.c
parent1ae0839ef24d303f77cec165df5223a66131567c (diff)
parente849881d3ad80e46bc4297d2cf9651f3f7d039cc (diff)
downloadtor-c2aea6134a3333bbace155f37fcabf8a5b4e2744.tar.gz
tor-c2aea6134a3333bbace155f37fcabf8a5b4e2744.zip
Merge remote-tracking branch 'tor-github/pr/1723/head' into maint-0.4.3
Diffstat (limited to 'src/lib/err/torerr_sys.c')
-rw-r--r--src/lib/err/torerr_sys.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/err/torerr_sys.c b/src/lib/err/torerr_sys.c
index aa49ba36bd..46fc853550 100644
--- a/src/lib/err/torerr_sys.c
+++ b/src/lib/err/torerr_sys.c
@@ -27,11 +27,9 @@ subsys_torerr_initialize(void)
static void
subsys_torerr_shutdown(void)
{
- /* Stop handling signals with backtraces, then close the logs. */
+ /* Stop handling signals with backtraces, then flush the logs. */
clean_up_backtrace_handler();
- /* We can't log any log messages after this point: we've closed all the log
- * fds, including stdio. */
- tor_log_close_sigsafe_err_fds();
+ tor_log_flush_sigsafe_err_fds();
}
const subsys_fns_t sys_torerr = {