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/IceBox/Service.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/IceBox/Service.cpp')
-rw-r--r-- | cpp/src/IceBox/Service.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cpp/src/IceBox/Service.cpp b/cpp/src/IceBox/Service.cpp index 2cfb70ce1ea..8c44fe7f37b 100644 --- a/cpp/src/IceBox/Service.cpp +++ b/cpp/src/IceBox/Service.cpp @@ -27,7 +27,7 @@ public: protected: - virtual bool start(int, char*[]); + virtual bool start(int, char*[], int&); virtual bool stop(); private: @@ -43,7 +43,7 @@ IceBox::IceBoxService::IceBoxService() } bool -IceBox::IceBoxService::start(int argc, char* argv[]) +IceBox::IceBoxService::start(int argc, char* argv[], int& status) { // Run through the command line arguments removing all the service // properties. @@ -84,11 +84,13 @@ IceBox::IceBoxService::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; } |