[Zodb-checkins] CVS: ZODB3/ZEO - runzeo.py:1.12

Guido van Rossum guido@python.org
Fri, 24 Jan 2003 17:37:23 -0500


Update of /cvs-repository/ZODB3/ZEO
In directory cvs.zope.org:/tmp/cvs-serv25208

Modified Files:
	runzeo.py 
Log Message:
Add a SIGHUP handler -- it calls sys.exit(1).


=== ZODB3/ZEO/runzeo.py 1.11 => 1.12 ===
--- ZODB3/ZEO/runzeo.py:1.11	Fri Jan 24 11:35:03 2003
+++ ZODB3/ZEO/runzeo.py	Fri Jan 24 17:37:20 2003
@@ -203,6 +203,10 @@
         info("terminated by SIGINT")
         sys.exit(0)
 
+    def handle_sighup(self):
+        info("restarted by SIGHUP")
+        sys.exit(1)
+
     def handle_sigusr2(self):
         # This requires a modern zLOG (from Zope 2.6 or later); older
         # zLOG packages don't have the initialize() method