]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Fix for the issue " 0022489: [CEA 1055] Regression: option shutdown-servers=1 does...
authorrnv <rnv@opencascade.com>
Thu, 13 Feb 2014 09:45:34 +0000 (13:45 +0400)
committerrnv <rnv@opencascade.com>
Thu, 13 Feb 2014 09:45:34 +0000 (13:45 +0400)
bin/runSalome.py

index 87539c1111598b6601a767cabd5038d3c64c8f45..49abc7db71c82d6157b2a623a95021813670b5db 100755 (executable)
@@ -749,7 +749,7 @@ def useSalome(args, modules_list, modules_root_dir):
                         import killSalomeWithPort
                         self.killSalomeWithPort = killSalomeWithPort
                         return
-                    def __del__(self):
+                    def delete(self):
                         self.killSalomeWithPort.killMyPort(self.port)
                         return
                     pass
@@ -811,6 +811,11 @@ def no_main():
     from searchFreePort import searchFreePort
     searchFreePort(args, 0)
     clt = useSalome(args, modules_list, modules_root_dir)
+
+    if args.has_key('shutdown_servers') : 
+        var = args['shutdown_servers']
+        if hasattr(var, 'delete') and callable(getattr(var, 'delete')) : 
+            var.delete()
     return clt
 
 # -----------------------------------------------------------------------------
@@ -939,6 +944,10 @@ def runSalome():
         foreGround(clt, args)
         pass
     # --
+    if args.has_key('shutdown_servers') : 
+        var = args['shutdown_servers']
+        if hasattr(var, 'delete') and callable(getattr(var, 'delete')) : 
+            var.delete()
     pass
 #