]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
To use patch on Bug NPAL17025
authorapo <apo@opencascade.com>
Fri, 26 Oct 2007 06:21:44 +0000 (06:21 +0000)
committerapo <apo@opencascade.com>
Fri, 26 Oct 2007 06:21:44 +0000 (06:21 +0000)
  EDF SALOME 4 : Can't launch Salome 4 if another Salome's Session is running (whatever the version is)

bin/runSalome.py

index d39c788dd7ac847b0e228238790fbdccbca06f46..c59046cc8b7865dd3a82f0c41bdb0f491fc6c727 100755 (executable)
@@ -726,9 +726,15 @@ def searchFreePort(args, save_config=1):
         status = 1;
        for item in lines:
            m = regObj.search( item )
-           if m and m.group(1) == NSPORT : 
-               status = 0;
-                break;
+           if m:
+               try:
+                   p = int( m.group(1) )
+                   if p == NSPORT: 
+                       status = 0;
+                       break;
+               except:
+                   pass
+           pass
 
         if status == 1:
             print "%s - OK"%(NSPORT)