[Zope-Checkins] CVS: Zope/lib/python - SignalHandler.py:1.2

Chris McDonough chrism@zope.com
Sat, 15 Jun 2002 00:15:40 -0400


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

Modified Files:
	SignalHandler.py 
Log Message:
Don't trap SystemExit, or HUP won't work.


=== Zope/lib/python/SignalHandler.py 1.1 => 1.2 ===
             # Never let a bad handler prevent the standard signal
             # handlers from running.
-            try:    handler()
-            except: pass
-
+            try: handler()
+            except SystemExit:
+                # if we trap SystemExit, we can't restart
+                raise
+            except:
+                pass
 
     # Builtin signal handlers for clean shutdown, restart and log rotation.