diff options
author | George Kadianakis <desnacked@riseup.net> | 2019-09-12 18:09:35 +0300 |
---|---|---|
committer | George Kadianakis <desnacked@riseup.net> | 2019-09-12 18:09:35 +0300 |
commit | 028733e8b6f36bae420b1e41897401fa3b14ccf8 (patch) | |
tree | c1b3929dad5011875d5b8e6ee9caea0514733f9c /src/lib/err/torerr_sys.c | |
parent | 3aaa4d416beee81eba3fed1ce9eda17e686fed52 (diff) | |
parent | ebce7059ffbc3a4a8b7ff7cf923b0e6a402f4f33 (diff) | |
download | tor-028733e8b6f36bae420b1e41897401fa3b14ccf8.tar.gz tor-028733e8b6f36bae420b1e41897401fa3b14ccf8.zip |
Merge branch 'tor-github/pr/1303'
Diffstat (limited to 'src/lib/err/torerr_sys.c')
-rw-r--r-- | src/lib/err/torerr_sys.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/err/torerr_sys.c b/src/lib/err/torerr_sys.c index 34f70f1f0b..eb818004fb 100644 --- a/src/lib/err/torerr_sys.c +++ b/src/lib/err/torerr_sys.c @@ -27,8 +27,11 @@ subsys_torerr_initialize(void) static void subsys_torerr_shutdown(void) { - tor_log_reset_sigsafe_err_fds(); + /* Stop handling signals with backtraces, then close 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(); } const subsys_fns_t sys_torerr = { |