diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2016-06-27 13:18:15 +0200 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2016-06-27 13:18:15 +0200 |
commit | 7b181ef630f5d766623299aa8c876cd60bb9251c (patch) | |
tree | c3ec3453aeebd0e8ed01b16611ae64df7c722841 /filedistribution | |
parent | 6701d0e82cc70a360d56eedf8e441ee930af8128 (diff) |
Use positive exit values withing range.
Diffstat (limited to 'filedistribution')
-rw-r--r-- | filedistribution/src/apps/filedistributor/filedistributor.cpp | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/filedistribution/src/apps/filedistributor/filedistributor.cpp b/filedistribution/src/apps/filedistributor/filedistributor.cpp index a54ab6266a4..6f06c4ea6b4 100644 --- a/filedistribution/src/apps/filedistributor/filedistributor.cpp +++ b/filedistribution/src/apps/filedistributor/filedistributor.cpp @@ -319,25 +319,29 @@ FileDistributorApplication::Main() { } catch(const FileDoesNotExistException & e) { std::string s = boost::diagnostic_information(e); EV_STOPPING(programName, s.c_str()); - return -1; + return 1; } catch(const ZKNodeDoesNotExistsException & e) { std::string s = boost::diagnostic_information(e); EV_STOPPING(programName, s.c_str()); - return -2; + return 2; } catch(const ZKSessionExpired & e) { std::string s = boost::diagnostic_information(e); EV_STOPPING(programName, s.c_str()); - return -3; + return 3; } catch(const ZKGenericException & e) { std::string s = boost::diagnostic_information(e); EV_STOPPING(programName, s.c_str()); - return -99; + 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 -999; + return 255; #if 0 + /* + These are kept hanging around for reference as to how it was when we just held our ears + singing "na, na, na, na..." no matter if the sun was shining or if the world imploded. + */ } catch(const boost::exception& e) { std::string s = boost::diagnostic_information(e); LOG(error, "Caught '%s'", s.c_str()); |