2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-28 20:47:48 +00:00

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

This commit is contained in:
JINMEI Tatuya 2012-10-24 10:16:42 -07:00
parent 2ce8ea317b
commit 296e119946

View 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();
}
}