diff options
author | Mark Spruiell <mes@zeroc.com> | 2004-02-29 20:42:15 +0000 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2004-02-29 20:42:15 +0000 |
commit | a475885faf424df5a1b5a1c32db87e98fb8cb2fe (patch) | |
tree | 1e79c93d560dcd4fa983a45346602343fa71d696 /cpp/test/IcePack/deployer/Server.cpp | |
parent | fix (diff) | |
download | ice-a475885faf424df5a1b5a1c32db87e98fb8cb2fe.tar.bz2 ice-a475885faf424df5a1b5a1c32db87e98fb8cb2fe.tar.xz ice-a475885faf424df5a1b5a1c32db87e98fb8cb2fe.zip |
adding Ice::Process for graceful shutdown of IcePack servers
Diffstat (limited to 'cpp/test/IcePack/deployer/Server.cpp')
-rw-r--r-- | cpp/test/IcePack/deployer/Server.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cpp/test/IcePack/deployer/Server.cpp b/cpp/test/IcePack/deployer/Server.cpp index 648580bee0c..d7194fcc181 100644 --- a/cpp/test/IcePack/deployer/Server.cpp +++ b/cpp/test/IcePack/deployer/Server.cpp @@ -13,7 +13,6 @@ // ********************************************************************** #include <Ice/Ice.h> -#include <Ice/Application.h> #include <TestI.h> #include <TestCommon.h> @@ -24,7 +23,6 @@ class Server : public Ice::Application public: virtual int run(int argc, char* argv[]); - }; int @@ -41,6 +39,7 @@ Server::run(int argc, char* argv[]) Ice::ObjectAdapterPtr adapter = communicator()->createObjectAdapter("Server"); Ice::ObjectPtr object = new TestI(adapter, properties); adapter->add(object, Ice::stringToIdentity(name)); + shutdownOnInterrupt(); try { |