diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-06-20 13:51:49 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-06-20 16:16:45 -0400 |
commit | a969ce464dc23db39725a891d60537f3d3e51b50 (patch) | |
tree | e1cdea547e8153faa5944e98de6169fc9e564703 /src/or | |
parent | 3246c9648c796ebfd591d0d1225fc6124413520b (diff) | |
download | tor-a969ce464dc23db39725a891d60537f3d3e51b50.tar.gz tor-a969ce464dc23db39725a891d60537f3d3e51b50.zip |
Remove log dependency from backtrace.[ch]
Diffstat (limited to 'src/or')
-rw-r--r-- | src/or/main.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/or/main.c b/src/or/main.c index 55ff41fd91..b2856d3f8d 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -4214,7 +4214,13 @@ tor_run_main(const tor_main_configuration_t *tor_cfg) } #endif /* defined(_WIN32) */ - configure_backtrace_handler(get_version()); + { + int bt_err = configure_backtrace_handler(get_version()); + if (bt_err < 0) { + log_warn(LD_BUG, "Unable to install backtrace handler: %s", + strerror(-bt_err)); + } + } init_protocol_warning_severity_level(); update_approx_time(time(NULL)); |