Commit 9d947e72 authored by Chris McDonough's avatar Chris McDonough

Don't trap SystemExit, or HUP won't work.

parent 2abd9f64
......@@ -13,7 +13,7 @@
"""Signal handling dispatcher."""
__version__='$Revision: 1.1 $'[11:-2]
__version__='$Revision: 1.2 $'[11:-2]
from ZServer import asyncore
import sys, os, zdaemon, ZLogger
......@@ -60,9 +60,12 @@ class SignalHandler:
for handler in self.registry.get(signum, []):
# 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.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment