From c3b0f9f59a4df9d793ffb30c19d3f7d4691ed365 Mon Sep 17 00:00:00 2001 From: Randall Leeds Date: Fri, 19 Dec 2014 17:19:51 -0800 Subject: [PATCH] Let the reloader kill the worker by signal only There is no reason to raise a `SystemExit` because the reloader thread will die when the worker exits anyway. Having this exception can cause tracebacks during interpreter shutdown (#910). Close #910 --- gunicorn/workers/base.py | 1 - 1 file changed, 1 deletion(-) diff --git a/gunicorn/workers/base.py b/gunicorn/workers/base.py index 599fb62e..f905c7b2 100644 --- a/gunicorn/workers/base.py +++ b/gunicorn/workers/base.py @@ -87,7 +87,6 @@ class Worker(object): def changed(fname): self.log.info("Worker reloading: %s modified", fname) os.kill(self.pid, signal.SIGQUIT) - raise SystemExit() Reloader(callback=changed).start() # set environment' variables