summaryrefslogtreecommitdiff
path: root/cpp/src/IceGrid/Parser.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2005-05-11 15:33:51 +0000
committerBenoit Foucher <benoit@zeroc.com>2005-05-11 15:33:51 +0000
commit6cfcf924e6252e6fe129b4f6bbcbd47d7727378c (patch)
tree8c8c7ffa31cf96550b1dc2c49c925fc4a037c88a /cpp/src/IceGrid/Parser.cpp
parentFix (diff)
downloadice-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.cpp28
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())