[Zope-Checkins] CVS: Zope - z2.py:1.88
Toby Dickenson
tdickenson@geminidataloggers.com
Mon, 4 Nov 2002 08:34:16 -0500
Update of /cvs-repository/Zope
In directory cvs.zope.org:/tmp/cvs-serv11475
Modified Files:
z2.py
Log Message:
clean shutdown
=== Zope/z2.py 1.87 => 1.88 ===
--- Zope/z2.py:1.87 Tue Oct 22 10:23:36 2002
+++ Zope/z2.py Mon Nov 4 08:33:46 2002
@@ -906,5 +906,8 @@
# Start Medusa, Ye Hass!
sys.ZServerExitCode=0
-asyncore.loop()
-sys.exit(sys.ZServerExitCode)
+import Lifetime
+Lifetime.loop()
+code = sys.ZServerExitCode
+zLOG.LOG("z2", zLOG.INFO, 'Exiting with code %d' % code )
+sys.exit(code)