diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2016-06-27 06:38:27 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2016-06-27 06:38:27 +0000 |
commit | 4eff6226ebca0907a7e0eb2aaf22f0a291c3d231 (patch) | |
tree | 580d71850bc28798dbbc9d9ecbe4123ae8501e52 /filedistribution | |
parent | 6b6bef8526c6c6ce1dd8e5d1bcf832cba2dc1ef4 (diff) |
Catch, log and exit on ZKSessionExpired instead of dumping a core.
Diffstat (limited to 'filedistribution')
-rw-r--r-- | filedistribution/src/apps/filedistributor/filedistributor.cpp | 8 |
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); |