diff --git a/gunicorn/arbiter.py b/gunicorn/arbiter.py index 707f1bf9..98a4cf2b 100644 --- a/gunicorn/arbiter.py +++ b/gunicorn/arbiter.py @@ -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)