]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Windows version debug
authorabd <abd@opencascade.com>
Mon, 21 Apr 2008 11:23:40 +0000 (11:23 +0000)
committerabd <abd@opencascade.com>
Mon, 21 Apr 2008 11:23:40 +0000 (11:23 +0000)
src/DSC/DSC_Basic/ConnectionManager_i.cxx

index 2f7f089c97e3d1d7b65179dd8580342c416e9033..a2cf257eb96891cf96c955e0518e9776cadaff29 100644 (file)
@@ -126,5 +126,10 @@ ConnectionManager_i::ShutdownWithExit()
 CORBA::Long
 ConnectionManager_i::getPID()
 {
-  return (CORBA::Long)getpid();
+  return
+#ifndef WIN32
+    (CORBA::Long)getpid();
+#else
+    (CORBA::Long)GetCurrentProcessId();
+#endif
 }