[Zodb-checkins] CVS: Zope/lib/python/ZEO - mkzeoinst.py:1.21

Chris McDonough chrism at plope.com
Wed Feb 18 17:10:50 EST 2004


Update of /cvs-repository/Zope/lib/python/ZEO
In directory cvs.zope.org:/tmp/cvs-serv2872

Modified Files:
	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.20 => 1.21 ===
--- Zope/lib/python/ZEO/mkzeoinst.py:1.20	Wed Feb 18 13:16:35 2004
+++ Zope/lib/python/ZEO/mkzeoinst.py	Wed Feb 18 17:10:50 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