diff options
author | Marc Laukien <marc@zeroc.com> | 2001-08-21 19:53:51 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2001-08-21 19:53:51 +0000 |
commit | b350b65a5be2b2b320953edb2d0283bbac7909eb (patch) | |
tree | aa86af74cb20090d4d18d9803a485739e0c24708 /cpp/test/Ice/exceptions/Server.cpp | |
parent | --Ice... (diff) | |
download | ice-b350b65a5be2b2b320953edb2d0283bbac7909eb.tar.bz2 ice-b350b65a5be2b2b320953edb2d0283bbac7909eb.tar.xz ice-b350b65a5be2b2b320953edb2d0283bbac7909eb.zip |
Ice.PrintProcessId, run.py cleanup
Diffstat (limited to 'cpp/test/Ice/exceptions/Server.cpp')
-rw-r--r-- | cpp/test/Ice/exceptions/Server.cpp | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/cpp/test/Ice/exceptions/Server.cpp b/cpp/test/Ice/exceptions/Server.cpp index 8b17fadd310..3789d6fa6b2 100644 --- a/cpp/test/Ice/exceptions/Server.cpp +++ b/cpp/test/Ice/exceptions/Server.cpp @@ -13,39 +13,14 @@ using namespace std; -void -usage(const char* n) -{ - cerr << "Usage: " << n << " [--pid]\n"; -} - int run(int argc, char* argv[], Ice::CommunicatorPtr communicator) { - bool pid = false; - for (int i = 1; i < argc; ++i) - { - if(strcmp(argv[i], "--pid") == 0) - { - pid = true; - } - else - { - cerr << argv[0] << ": unknown option `" << argv[i] << "'" << endl; - usage(argv[0]); - return EXIT_FAILURE; - } - } - string endpts("tcp -p 12345 -t 2000"); Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapterWithEndpoints("TestAdapter", endpts); Ice::ObjectPtr object = new ThrowerI(adapter); adapter->add(object, "thrower"); adapter->activate(); - if (pid) - { - cout << getpid() << endl; - } communicator->waitForShutdown(); return EXIT_SUCCESS; } |