summaryrefslogtreecommitdiff
path: root/cpp/demo/Ice/async/Server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/demo/Ice/async/Server.cpp')
-rw-r--r--cpp/demo/Ice/async/Server.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/cpp/demo/Ice/async/Server.cpp b/cpp/demo/Ice/async/Server.cpp
index 86e9f3ef0c1..960a9021639 100644
--- a/cpp/demo/Ice/async/Server.cpp
+++ b/cpp/demo/Ice/async/Server.cpp
@@ -35,6 +35,12 @@ main(int argc, char* argv[])
int
AsyncServer::run(int argc, char* argv[])
{
+ if(argc > 1)
+ {
+ cerr << appName() << ": too many arguments" << endl;
+ return EXIT_FAILURE;
+ }
+
callbackOnInterrupt();
Ice::ObjectAdapterPtr adapter = communicator()->createObjectAdapter("Hello");