summaryrefslogtreecommitdiffstats
path: root/filedistribution
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2016-06-27 06:38:27 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2016-06-27 06:38:27 +0000
commit4eff6226ebca0907a7e0eb2aaf22f0a291c3d231 (patch)
tree580d71850bc28798dbbc9d9ecbe4123ae8501e52 /filedistribution
parent6b6bef8526c6c6ce1dd8e5d1bcf832cba2dc1ef4 (diff)
Catch, log and exit on ZKSessionExpired instead of dumping a core.
Diffstat (limited to 'filedistribution')
-rw-r--r--filedistribution/src/apps/filedistributor/filedistributor.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/filedistribution/src/apps/filedistributor/filedistributor.cpp b/filedistribution/src/apps/filedistributor/filedistributor.cpp
index d284385784d..a54ab6266a4 100644
--- a/filedistribution/src/apps/filedistributor/filedistributor.cpp
+++ b/filedistribution/src/apps/filedistributor/filedistributor.cpp
@@ -324,15 +324,19 @@ FileDistributorApplication::Main() {
std::string s = boost::diagnostic_information(e);
EV_STOPPING(programName, s.c_str());
return -2;
- } catch(const ZKGenericException & e) {
+ } catch(const ZKSessionExpired & e) {
std::string s = boost::diagnostic_information(e);
EV_STOPPING(programName, s.c_str());
return -3;
+ } catch(const ZKGenericException & e) {
+ std::string s = boost::diagnostic_information(e);
+ EV_STOPPING(programName, s.c_str());
+ return -99;
} catch(const boost::unknown_exception & e) {
std::string s = boost::diagnostic_information(e);
LOG(warning, "Caught '%s'", s.c_str());
EV_STOPPING(programName, s.c_str());
- return -4;
+ return -999;
#if 0
} catch(const boost::exception& e) {
std::string s = boost::diagnostic_information(e);