mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
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:
parent
8903d0d53a
commit
17decda1e3
@ -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())
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user