summaryrefslogtreecommitdiffstats
path: root/vespaclient
diff options
context:
space:
mode:
authorArne Juul <arnej@verizonmedia.com>2020-07-02 12:34:14 +0000
committerArne Juul <arnej@verizonmedia.com>2020-07-03 08:02:40 +0000
commit50cfc6e40bb1a6e968c77e8ee89990b891e22c13 (patch)
tree471d29baefae44465e8b148b7ec24302f4131fc6 /vespaclient
parentfca385ca81ea92e6b9dbbb0d1794cfafa35ababc (diff)
avoid naked exit
Diffstat (limited to 'vespaclient')
-rw-r--r--vespaclient/src/vespa/vespaclient/vdsstates/statesapp.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/vespaclient/src/vespa/vespaclient/vdsstates/statesapp.cpp b/vespaclient/src/vespa/vespaclient/vdsstates/statesapp.cpp
index 1b8f31f0d03..082aa83c3da 100644
--- a/vespaclient/src/vespa/vespaclient/vdsstates/statesapp.cpp
+++ b/vespaclient/src/vespa/vespaclient/vdsstates/statesapp.cpp
@@ -15,6 +15,7 @@
#include <sstream>
#include <iostream>
#include <thread>
+#include <cstdlib>
#include <sys/time.h>
#include <vespa/log/log.h>
@@ -128,7 +129,7 @@ struct Options : public vespalib::ProgramOptions {
_clusterName = _cluster.getName();
} catch (const vespaclient::ClusterList::ClusterNotFoundException& e) {
std::cerr << e.getMessage() << "\n";
- exit(1);
+ std::_Exit(1);
}
return true;
}