]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
#16706 fix1. Add check unkill process and new add to KillList
authorvuzlov <vuzlov@opencascade.com>
Thu, 17 Sep 2020 17:21:58 +0000 (20:21 +0300)
committervuzlov <vuzlov@opencascade.com>
Thu, 17 Sep 2020 17:21:58 +0000 (20:21 +0300)
bin/killSalomeWithPort.py

index b40bfbe6e5f648c13f734094e5fa3cfe581903eb..c28f64cf3df1397d2b737fd5e79a409245ba2553 100755 (executable)
@@ -405,7 +405,7 @@ def checkUnkillProcess():
     user = getUserName()
     if sys.platform != 'win32':
         import subprocess
-        cmd = "ps -fea | grep 'vsr' | grep -e 'SALOME_' -e 'omniNames' | awk '{print $2}'" % user
+        cmd = "ps -fea | grep '%s' | grep -e 'SALOME_' -e 'omniNames' | awk '{print $2}'" % user
         prc = subprocess.getoutput(cmd)
         if prc:
             print("Salome process aren't killed\nCheck this PID: ", prc)