diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-11-09 11:00:31 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-11-09 11:00:31 -0500 |
commit | e80595f562e199049a41fdf1f3e12baced7e74d5 (patch) | |
tree | a0b4ea52039ea481138c12f531afb3230f40bd96 /src/lib/err | |
parent | 61695e3d622dfcc196b8b829842f2b12fecebeab (diff) | |
download | tor-e80595f562e199049a41fdf1f3e12baced7e74d5.tar.gz tor-e80595f562e199049a41fdf1f3e12baced7e74d5.zip |
fixup! Make initialization for the "err" library into a subsystem.
Check for failure to install backtrace handler.
Diffstat (limited to 'src/lib/err')
-rw-r--r-- | src/lib/err/torerr_sys.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/err/torerr_sys.c b/src/lib/err/torerr_sys.c index 54666f4106..2f9e33e233 100644 --- a/src/lib/err/torerr_sys.c +++ b/src/lib/err/torerr_sys.c @@ -18,7 +18,8 @@ static int torerr_subsys_init(void) { - configure_backtrace_handler(get_version()); + if (configure_backtrace_handler(get_version()) < 0) + return -1; tor_log_reset_sigsafe_err_fds(); return 0; |