From 7bb5de2fec9ce3d0ea9450c9660af4af6a4ec7bc Mon Sep 17 00:00:00 2001 From: secher Date: Thu, 3 Mar 2011 13:00:11 +0000 Subject: [PATCH] clean warning message --- src/Container/SALOME_ContainerManager.cxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Container/SALOME_ContainerManager.cxx b/src/Container/SALOME_ContainerManager.cxx index 6ddaaa0a1..f2a5469a0 100644 --- a/src/Container/SALOME_ContainerManager.cxx +++ b/src/Container/SALOME_ContainerManager.cxx @@ -92,7 +92,7 @@ SALOME_ContainerManager::SALOME_ContainerManager(CORBA::ORB_ptr orb, PortableSer urifile += "/.urifile_" + mypid.str(); setenv("OMPI_URI_FILE",urifile.c_str(),0); if( getenv("OMPI_URI_FILE") != NULL ){ - system("killall ompi-server"); + system("killall -q ompi-server"); std::string command; command = "ompi-server -r "; command += getenv("OMPI_URI_FILE"); @@ -117,8 +117,10 @@ SALOME_ContainerManager::~SALOME_ContainerManager() MESSAGE("destructor"); #ifdef HAVE_MPI2 #ifdef WITHOPENMPI - if( getenv("OMPI_URI_FILE") != NULL ) - system("killall ompi-server"); + if( getenv("OMPI_URI_FILE") != NULL ){ + system("killall -q ompi-server"); + system("rm -f ${OMPI_URI_FILE}"); + } #endif #endif } -- 2.39.2