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/src/Ice/Instance.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/src/Ice/Instance.cpp')
-rw-r--r-- | cpp/src/Ice/Instance.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/cpp/src/Ice/Instance.cpp b/cpp/src/Ice/Instance.cpp index 08002462d84..41ba778cadc 100644 --- a/cpp/src/Ice/Instance.cpp +++ b/cpp/src/Ice/Instance.cpp @@ -16,6 +16,7 @@ #include <Ice/ValueFactoryManager.h> #include <Ice/ObjectAdapterFactory.h> #include <Ice/LocalException.h> +#include <Ice/Properties.h> #include <Ice/LoggerI.h> #include <Ice/PicklerI.h> @@ -145,6 +146,16 @@ IceInternal::Instance::Instance(const CommunicatorPtr& communicator, const Prope if (++_globalStateCounter == 1) // Only on first call { + string value = properties->getProperty("Ice.PrintProcessId"); + if (atoi(value.c_str()) >= 1) + { +#ifdef WIN32 + cout << _getpid() << endl; +#else + cout << getpid() << endl; +#endif + } + #ifdef WIN32 WORD version = MAKEWORD(1, 1); WSADATA data; |