diff options
author | Arne Juul <arnej@verizonmedia.com> | 2020-07-02 11:45:02 +0000 |
---|---|---|
committer | Arne Juul <arnej@verizonmedia.com> | 2020-07-03 08:02:38 +0000 |
commit | bfb881faf0fb0cc2366e8ded93f9d15bbf075109 (patch) | |
tree | cd9b327ef434252d73aecb8be2cbb96169f60253 /logforwarder | |
parent | 70fed42d432fa8937ff0411958cf271ea8b737f1 (diff) |
use std::_Exit()
Diffstat (limited to 'logforwarder')
-rw-r--r-- | logforwarder/src/apps/vespa-logforwarder-start/cf-handler.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/logforwarder/src/apps/vespa-logforwarder-start/cf-handler.cpp b/logforwarder/src/apps/vespa-logforwarder-start/cf-handler.cpp index e37a6fb2dcb..a149c6581ac 100644 --- a/logforwarder/src/apps/vespa-logforwarder-start/cf-handler.cpp +++ b/logforwarder/src/apps/vespa-logforwarder-start/cf-handler.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 "cf-handler.h" +#include <cstdlib> #include <dirent.h> #include <stdio.h> #include <unistd.h> @@ -122,12 +123,12 @@ CfHandler::start(const char *configId) subscribe(configId, CONFIG_TIMEOUT_MS); } catch (config::ConfigTimeoutException & ex) { LOG(warning, "Timout getting config, please check your setup. Will exit and restart: %s", ex.getMessage().c_str()); - exit(EXIT_FAILURE); + std::_Exit(EXIT_FAILURE); } catch (config::InvalidConfigException& ex) { LOG(error, "Fatal: Invalid configuration, please check your setup: %s", ex.getMessage().c_str()); - exit(EXIT_FAILURE); + std::_Exit(EXIT_FAILURE); } catch (config::ConfigRuntimeException& ex) { LOG(error, "Fatal: Could not get config, please check your setup: %s", ex.getMessage().c_str()); - exit(EXIT_FAILURE); + std::_Exit(EXIT_FAILURE); } } |