]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[master] use terminate() instead of assert(false) for forceful termination trac2406_base
authorJINMEI Tatuya <jinmei@isc.org>
Wed, 24 Oct 2012 17:16:42 +0000 (10:16 -0700)
committerJINMEI Tatuya <jinmei@isc.org>
Wed, 24 Oct 2012 17:16:42 +0000 (10:16 -0700)
src/bin/auth/datasrc_clients_mgr.h

index d42d26cd0170bf9d18bf373444a1e7487fc8817f..48bae815691546a7fb7038cf70dd19cdb5a071f4 100644 (file)
@@ -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();
     }
 }