summaryrefslogtreecommitdiffstats
path: root/filedistribution
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2016-09-20 11:47:06 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2016-09-20 11:47:06 +0000
commit676e20834c8cfa53dda25a851ce4fb4f3171ac6a (patch)
tree669daabb69e207a6ca99dfc7425929a8525f48ed /filedistribution
parent8e7e07793ffc94ca1c6147cfb97439a70dbabf61 (diff)
Exit and quickly restart on ZKConnectionLossEvent.
Diffstat (limited to 'filedistribution')
-rw-r--r--filedistribution/src/apps/filedistributor/filedistributor.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/filedistribution/src/apps/filedistributor/filedistributor.cpp b/filedistribution/src/apps/filedistributor/filedistributor.cpp
index a690b7dc14b..4d81970f75c 100644
--- a/filedistribution/src/apps/filedistributor/filedistributor.cpp
+++ b/filedistribution/src/apps/filedistributor/filedistributor.cpp
@@ -292,6 +292,10 @@ FileDistributorApplication::Main() {
std::string s = boost::diagnostic_information(e);
EV_STOPPING(programName, s.c_str());
return 5;
+ } catch(const ZKConnectionLossException & e) {
+ std::string s = boost::diagnostic_information(e);
+ EV_STOPPING(programName, s.c_str());
+ return 6;
} catch(const ZKGenericException & e) {
std::string s = boost::diagnostic_information(e);
EV_STOPPING(programName, s.c_str());