]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Better fix for salome kill (issue CEA 17744). V9_4_0a2 V9_4_0b1
authorOvidiu Mircescu <ovidiu.mircescu@edf.fr>
Mon, 7 Oct 2019 13:21:30 +0000 (15:21 +0200)
committerOvidiu Mircescu <ovidiu.mircescu@edf.fr>
Mon, 7 Oct 2019 13:21:30 +0000 (15:21 +0200)
bin/killSalomeWithPort.py

index 7417f18994125fa94ed2edf0949a6ceda94925e5..6fc8bae13cd38d3b3f0be652df7cef328c03831e 100755 (executable)
@@ -208,9 +208,14 @@ def shutdownMyPort(port, cleanup=True):
         time.sleep(1)
         # shutdown omniNames
         if cleanup:
-            lcc.killOmniNames()
-            time.sleep(1)
-            pass
+          from salome_utils import killOmniNames
+          killOmniNames(port)
+          filedict=getPiDict(port)
+          __killMyPort(port, filedict)
+          from PortManager import releasePort
+          releasePort(port)
+          time.sleep(1)
+          pass
         pass
     except:
         pass
@@ -342,7 +347,7 @@ def cleanApplication(port):
 
     try:
         filedict=getPiDict(port)
-        __killMyPort(port, filedict)
+        os.remove(filedict)
     except:
       #import traceback
       #traceback.print_exc()