- if verbose():
- print "stop omniNames [pid=%s] on port %s"%(omniNamesPid, omniNamesPort)
- appliCleanOmniOrbConfig(omniNamesPort)
- from PortManager import releasePort
- releasePort(omniNamesPort)
- os.kill(int(omniNamesPid),signal.SIGKILL)
- except (ImportError, AttributeError, OSError) as e:
+ if omniNamesPort == port:
+ if verbose():
+ print "stop omniNames [pid=%s] on port %s"%(omniNamesPid, omniNamesPort)
+ appliCleanOmniOrbConfig(omniNamesPort)
+ from PortManager import releasePort
+ releasePort(omniNamesPort)
+ os.kill(int(omniNamesPid),signal.SIGKILL)
+ except (ImportError, AttributeError, OSError):