[tor-commits] [tor/master] fixup! Make initialization for the "err" library into a subsystem.

nickm at torproject.org nickm at torproject.org
Fri Nov 9 20:01:54 UTC 2018


commit e80595f562e199049a41fdf1f3e12baced7e74d5
Author: Nick Mathewson <nickm at torproject.org>
Date:   Fri Nov 9 11:00:31 2018 -0500

    fixup! Make initialization for the "err" library into a subsystem.
    
    Check for failure to install backtrace handler.
---
 src/lib/err/torerr_sys.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/lib/err/torerr_sys.c b/src/lib/err/torerr_sys.c
index 54666f410..2f9e33e23 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;





More information about the tor-commits mailing list