we only care of it if gunicorn was started as a daemon

fix #466
This commit is contained in:
benoitc 2013-04-21 07:00:03 +02:00
parent 116c82333b
commit 765839b2ad

View File

@ -265,7 +265,7 @@ class Arbiter(object):
def handle_winch(self):
"SIGWINCH handling"
if os.getppid() == 1 or os.getpgrp() != os.getpid():
if self.cfg.daemon:
self.log.info("graceful stop of workers")
self.num_workers = 0
self.kill_workers(signal.SIGQUIT)