[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit e80595f562e199049a41fdf1f3e12baced7e74d5
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
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;



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits