Commit a76b1f7d authored by Chris McDonough's avatar Chris McDonough

Do not complain about being installed when something is already listening on the

 port we plan to listen on.
parent 727582ee
...@@ -160,7 +160,6 @@ class ZEOInstanceBuilder: ...@@ -160,7 +160,6 @@ class ZEOInstanceBuilder:
port = int(args[1]) port = int(args[1])
else: else:
port = 9999 port = 9999
checkport(port)
params = self.get_params(zodb3_home, instance_home, port) params = self.get_params(zodb3_home, instance_home, port)
self.create(instance_home, params) self.create(instance_home, params)
...@@ -186,16 +185,6 @@ class ZEOInstanceBuilder: ...@@ -186,16 +185,6 @@ class ZEOInstanceBuilder:
makexfile(runzeo_template, home, "bin", "runzeo", **params) makexfile(runzeo_template, home, "bin", "runzeo", **params)
def checkport(port):
import socket
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
try:
s.bind(("", port))
except socket.error:
print "A process is already listening on port %d" % port
sys.exit(2)
s.close()
def which(program): def which(program):
strpath = os.getenv("PATH") strpath = os.getenv("PATH")
binpath = strpath.split(os.pathsep) binpath = strpath.split(os.pathsep)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment