From 90ad3a941e690d97fd9b6fa5ca4a517e2bfc3c87 Mon Sep 17 00:00:00 2001 From: adam Date: Fri, 29 May 2009 11:59:36 +0000 Subject: [PATCH] [windows] Avoid a segmentation in killOmniNames --- src/LifeCycleCORBA/SALOME_LifeCycleCORBA.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/LifeCycleCORBA/SALOME_LifeCycleCORBA.cxx b/src/LifeCycleCORBA/SALOME_LifeCycleCORBA.cxx index eb2d2d914..197da12db 100644 --- a/src/LifeCycleCORBA/SALOME_LifeCycleCORBA.cxx +++ b/src/LifeCycleCORBA/SALOME_LifeCycleCORBA.cxx @@ -534,6 +534,8 @@ void SALOME_LifeCycleCORBA::killOmniNames() string portNumber (::getenv ("NSPORT") ); if ( !portNumber.empty() ) { +#ifdef WNT +#else string cmd ; cmd = string( "ps -eo pid,command | grep -v grep | grep -E \"omniNames.*") + portNumber @@ -544,6 +546,7 @@ void SALOME_LifeCycleCORBA::killOmniNames() } catch ( ... ) { } +#endif } // NPAL 18309 (Kill Notifd) -- 2.39.2