Skip to content

Commit

Permalink
Actually expose the reloader
Browse files Browse the repository at this point in the history
The reloader was not actually being stored on the worker.
  • Loading branch information
tilgovi committed Mar 6, 2015
1 parent cc12055 commit 3bb4de4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gunicorn/workers/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ def init_process(self):
def changed(fname):
self.log.info("Worker reloading: %s modified", fname)
os.kill(self.pid, signal.SIGQUIT)
self.reloader = Reloader(callback=changed).start()
self.reloader = Reloader(callback=changed)
self.reloader.start()

# set environment' variables
if self.cfg.env:
Expand Down

0 comments on commit 3bb4de4

Please sign in to comment.