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