diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/src/vespa/config/helper/configpoller.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/config/src/vespa/config/helper/configpoller.cpp b/config/src/vespa/config/helper/configpoller.cpp index 7620695725b..65c505e81d8 100644 --- a/config/src/vespa/config/helper/configpoller.cpp +++ b/config/src/vespa/config/helper/configpoller.cpp @@ -1,6 +1,7 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "configpoller.h" +#include <vespa/config/common/exceptions.h> #include <vespa/log/log.h> LOG_SETUP(".config.helper.configpoller"); @@ -21,8 +22,13 @@ ConfigPoller::~ConfigPoller() { } void ConfigPoller::run() { - while (!_subscriber.isClosed()) { - poll(); + try { + while (!_subscriber.isClosed()) { + poll(); + } + } catch (config::InvalidConfigException & e) { + LOG(fatal, "Got exception, will just exit quickly : %s", e.what()); + std::quick_exit(17); } } |