From 5e37c8901708f8bb7603f69b8c6b9d989fabb8c8 Mon Sep 17 00:00:00 2001 From: benoitc Date: Fri, 25 May 2012 13:40:29 +0200 Subject: [PATCH] don't try to set the script as the process group. fix #355 Setting gunicorn as the process group prevent exit from the shell. --- gunicorn/app/base.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/gunicorn/app/base.py b/gunicorn/app/base.py index bc3296d0..d6917e72 100644 --- a/gunicorn/app/base.py +++ b/gunicorn/app/base.py @@ -119,12 +119,7 @@ class Application(object): debug.spew() if self.cfg.daemon: util.daemonize() - else: - try: - os.setpgrp() - except OSError, e: - if e[0] != errno.EPERM: - raise + try: Arbiter(self).run() except RuntimeError, e: