Commit 23c25e87 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 17edb9f4
......@@ -160,7 +160,6 @@ class ZEOInstanceBuilder:
port = int(args[1])
else:
port = 9999
checkport(port)
params = self.get_params(zodb3_home, instance_home, port)
self.create(instance_home, params)
......@@ -186,16 +185,6 @@ class ZEOInstanceBuilder:
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):
strpath = os.getenv("PATH")
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