From 765839b2ade5480741ce70be7da508eff34b46b4 Mon Sep 17 00:00:00 2001 From: benoitc Date: Sun, 21 Apr 2013 07:00:03 +0200 Subject: [PATCH] we only care of it if gunicorn was started as a daemon fix #466 --- gunicorn/arbiter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)