catch SystemExit exception and exit quietly

raised by:
1) workers started during reload (main loop) that are killed later
2) the arbiter process during Ctl-C or other halt signals
This commit is contained in:
Randall Leeds 2010-08-04 04:31:47 +08:00 committed by Benoit Chesneau
parent 8903d0d53a
commit 17decda1e3

View File

@ -168,6 +168,8 @@ class Arbiter(object):
self.halt()
except KeyboardInterrupt:
self.halt()
except SystemExit:
raise
except Exception:
self.log.info("Unhandled exception in main loop:\n%s" %
traceback.format_exc())