[Zope-Checkins] CVS: Zope/lib/python/Signals - Signals.py:1.2.4.7
Chris McDonough
chrism@zope.com
Wed, 9 Oct 2002 00:58:03 -0400
Update of /cvs-repository/Zope/lib/python/Signals
In directory cvs.zope.org:/tmp/cvs-serv11022/lib/python/Signals
Modified Files:
Tag: chrism-install-branch
Signals.py
Log Message:
Merge changes from trunk.
=== Zope/lib/python/Signals/Signals.py 1.2.4.6 => 1.2.4.7 ===
--- Zope/lib/python/Signals/Signals.py:1.2.4.6 Tue Oct 8 17:45:53 2002
+++ Zope/lib/python/Signals/Signals.py Wed Oct 9 00:57:33 2002
@@ -72,18 +72,14 @@
def closeall():
- """Helper method to close network and database connections."""
+ """Helper method to close database connections. This also used
+ to close network connections, but that hosed ZEO clients in some
+ instances, so we don't do that anymore"""
import Globals
- import asyncore
- zLOG.LOG('Z2', zLOG.INFO, "Closing all open network connections")
- for socket in asyncore.socket_map.values():
- try: socket.close()
- except: pass
zLOG.LOG('Z2', zLOG.INFO, "Closing all open ZODB databases")
for db in Globals.opened:
- try: db.close()
- finally: pass
+ db.close()
def registerZopeSignals():
import signal