BIND 10 master, updated. 296e119946e9fb8d6eebdabf6eb166f47c47fbd0 [master] use terminate() instead of assert(false) for forceful termination

BIND 10 source code commits bind10-changes at lists.isc.org
Wed Oct 24 17:17:24 UTC 2012


The branch, master has been updated
       via  296e119946e9fb8d6eebdabf6eb166f47c47fbd0 (commit)
      from  2ce8ea317bf920ec540ed40f10738cb2f65426df (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 296e119946e9fb8d6eebdabf6eb166f47c47fbd0
Author: JINMEI Tatuya <jinmei at isc.org>
Date:   Wed Oct 24 10:16:42 2012 -0700

    [master] use terminate() instead of assert(false) for forceful termination

-----------------------------------------------------------------------

Summary of changes:
 src/bin/auth/datasrc_clients_mgr.h |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

-----------------------------------------------------------------------
diff --git a/src/bin/auth/datasrc_clients_mgr.h b/src/bin/auth/datasrc_clients_mgr.h
index d42d26c..48bae81 100644
--- a/src/bin/auth/datasrc_clients_mgr.h
+++ b/src/bin/auth/datasrc_clients_mgr.h
@@ -36,6 +36,7 @@
 #include <boost/shared_ptr.hpp>
 #include <boost/noncopyable.hpp>
 
+#include <exception>
 #include <list>
 #include <utility>
 
@@ -406,10 +407,10 @@ DataSrcClientsBuilderBase<MutexType, CondVarType>::run() {
         // We explicitly catch exceptions so we can log it as soon as possible.
         LOG_FATAL(auth_logger, AUTH_DATASRC_CLIENTS_BUILDER_FAILED).
             arg(ex.what());
-        assert(false);
+        std::terminate();
     } catch (...) {
         LOG_FATAL(auth_logger, AUTH_DATASRC_CLIENTS_BUILDER_FAILED_UNEXPECTED);
-        assert(false);
+        std::terminate();
     }
 }
 



More information about the bind10-changes mailing list