diff options
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; |