diff options
author | Benoit Foucher <benoit@zeroc.com> | 2005-05-11 15:33:51 +0000 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2005-05-11 15:33:51 +0000 |
commit | 6cfcf924e6252e6fe129b4f6bbcbd47d7727378c (patch) | |
tree | 8c8c7ffa31cf96550b1dc2c49c925fc4a037c88a /cpp/src/IceGrid/Parser.cpp | |
parent | Fix (diff) | |
download | ice-6cfcf924e6252e6fe129b4f6bbcbd47d7727378c.tar.bz2 ice-6cfcf924e6252e6fe129b4f6bbcbd47d7727378c.tar.xz ice-6cfcf924e6252e6fe129b4f6bbcbd47d7727378c.zip |
Fixed Ice::Service::shutdown() to catch exceptions.
Diffstat (limited to 'cpp/src/IceGrid/Parser.cpp')
-rw-r--r-- | cpp/src/IceGrid/Parser.cpp | 28 |
1 files changed, 24 insertions, 4 deletions
diff --git a/cpp/src/IceGrid/Parser.cpp b/cpp/src/IceGrid/Parser.cpp index a8df0298e71..c9b31f21949 100644 --- a/cpp/src/IceGrid/Parser.cpp +++ b/cpp/src/IceGrid/Parser.cpp @@ -167,9 +167,19 @@ describe(IceUtil::Output& out, const Ice::CommunicatorPtr& communicator, const S if(!s->jvmOptions.empty()) { out << nl << "jvmOptions = '"; - for(Ice::StringSeq::const_iterator p = s->jvmOptions.begin(); p != s->jvmOptions.end();) + Ice::StringSeq::const_iterator p = s->jvmOptions.begin(); + while(p != s->jvmOptions.end()) { - out << *p << ((++p != s->jvmOptions.end()) ? " " : "'"); + out << *p; + ++p; + if(p != s->jvmOptions.end()) + { + out << " "; + } + else + { + out << "'"; + } } } } @@ -186,9 +196,19 @@ describe(IceUtil::Output& out, const Ice::CommunicatorPtr& communicator, const S if(!server->options.empty()) { out << nl << "options = '"; - for(Ice::StringSeq::const_iterator p = server->options.begin(); p != server->options.end();) + Ice::StringSeq::const_iterator p = server->options.begin(); + while(p != server->options.end()) { - out << *p << ((++p != server->options.end()) ? " " : "'"); + out << *p; + ++p; + if(p != server->options.end()) + { + out << " "; + } + else + { + out << "'"; + } } } if(!server->envs.empty()) |