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
This commit is contained in:
Randall Leeds 2014-12-19 17:19:51 -08:00
parent d53ac880b2
commit c3b0f9f59a

View File

@ -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