From: Ovidiu Mircescu Date: Mon, 7 Oct 2019 13:21:30 +0000 (+0200) Subject: Better fix for salome kill (issue CEA 17744). X-Git-Tag: V9_4_0a2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b8ac675f098c6903b801e1a6aecfe5ebd3844e79;p=modules%2Fkernel.git Better fix for salome kill (issue CEA 17744). --- diff --git a/bin/killSalomeWithPort.py b/bin/killSalomeWithPort.py index 7417f1899..6fc8bae13 100755 --- a/bin/killSalomeWithPort.py +++ b/bin/killSalomeWithPort.py @@ -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()