[Zodb-checkins] CVS: Zope/lib/python/ZEO - mkzeoinst.py:1.18.8.3
Chris McDonough
chrism at plope.com
Wed Feb 18 17:10:14 EST 2004
Update of /cvs-repository/Zope/lib/python/ZEO
In directory cvs.zope.org:/tmp/cvs-serv2572
Modified Files:
Tag: Zope-2_7-branch
mkzeoinst.py
Log Message:
Do not complain about being installed when something is already listening on the port we plan to listen on.
=== Zope/lib/python/ZEO/mkzeoinst.py 1.18.8.2 => 1.18.8.3 ===
--- Zope/lib/python/ZEO/mkzeoinst.py:1.18.8.2 Tue Feb 17 16:11:16 2004
+++ Zope/lib/python/ZEO/mkzeoinst.py Wed Feb 18 17:10:14 2004
@@ -160,7 +160,6 @@
port = int(args[1])
else:
port = 9999
- checkport(port)
params = self.get_params(zodb3_home, instance_home, port)
self.create(instance_home, params)
@@ -185,16 +184,6 @@
makexfile(zeoctl_template, home, "bin", "zeoctl", **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):
strpath = os.getenv("PATH")
More information about the Zodb-checkins
mailing list