From: eap Date: Tue, 9 Jul 2013 15:49:59 +0000 (+0000) Subject: In CancelCompute() kill "sh -c mg-tetra.exe ..." command as well as "mg-tetra.exe... X-Git-Tag: V7_3_0a1~38 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=569ef8468deefe9a921cf14c04777c480e50460f;p=plugins%2Fhybridplugin.git In CancelCompute() kill "sh -c mg-tetra.exe ..." command as well as "mg-tetra.exe ..." --- diff --git a/src/GHS3DPlugin/GHS3DPlugin_GHS3D.cxx b/src/GHS3DPlugin/GHS3DPlugin_GHS3D.cxx index e2e07f8..ab9e086 100644 --- a/src/GHS3DPlugin/GHS3DPlugin_GHS3D.cxx +++ b/src/GHS3DPlugin/GHS3DPlugin_GHS3D.cxx @@ -3750,7 +3750,7 @@ void GHS3DPlugin_GHS3D::CancelCompute() #ifdef WNT #else std::string cmd = "ps xo pid,args | grep " + _genericName; - cmd += " | grep -e \"^ *[0-9]\\+ \\+" + GHS3DPlugin_Hypothesis::GetExeName() + "\""; + //cmd += " | grep -e \"^ *[0-9]\\+ \\+" + GHS3DPlugin_Hypothesis::GetExeName() + "\""; cmd += " | awk '{print $1}' | xargs kill -9 > /dev/null 2>&1"; system( cmd.c_str() ); #endif