diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2009-10-20 13:17:47 -0230 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2009-10-20 13:17:47 -0230 |
commit | b6e077a730ca2967d3e9d9c32068ba2b5df9d26d (patch) | |
tree | e5286221fc505828f3e8ac247f04ec33b7be3b04 /cpp/src/IcePatch2/Server.cpp | |
parent | Changes to how to access class members in python (diff) | |
download | ice-b6e077a730ca2967d3e9d9c32068ba2b5df9d26d.tar.bz2 ice-b6e077a730ca2967d3e9d9c32068ba2b5df9d26d.tar.xz ice-b6e077a730ca2967d3e9d9c32068ba2b5df9d26d.zip |
Bug 4311 - change Ice::Service::start signature
Diffstat (limited to 'cpp/src/IcePatch2/Server.cpp')
-rw-r--r-- | cpp/src/IcePatch2/Server.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cpp/src/IcePatch2/Server.cpp b/cpp/src/IcePatch2/Server.cpp index 0678927b886..fdb68fdedb6 100644 --- a/cpp/src/IcePatch2/Server.cpp +++ b/cpp/src/IcePatch2/Server.cpp @@ -49,7 +49,7 @@ public: protected: - virtual bool start(int, char*[]); + virtual bool start(int, char*[], int&); virtual bool stop(); private: @@ -64,7 +64,7 @@ IcePatch2::PatcherService::PatcherService() } bool -IcePatch2::PatcherService::start(int argc, char* argv[]) +IcePatch2::PatcherService::start(int argc, char* argv[], int& status) { PropertiesPtr properties = communicator()->getProperties(); @@ -87,11 +87,13 @@ IcePatch2::PatcherService::start(int argc, char* argv[]) if(opts.isSet("help")) { usage(argv[0]); + status = EXIT_SUCCESS; return false; } if(opts.isSet("version")) { print(ICE_STRING_VERSION); + status = EXIT_SUCCESS; return false; } |