From f29c61091691135dcfae029a7eadf1663a06a73e Mon Sep 17 00:00:00 2001 From: benoitc Date: Wed, 10 Nov 2010 19:02:37 +0100 Subject: [PATCH] we aren't the leader all the time. --- gunicorn/app/base.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/gunicorn/app/base.py b/gunicorn/app/base.py index 38879f07..ed92196d 100644 --- a/gunicorn/app/base.py +++ b/gunicorn/app/base.py @@ -111,10 +111,8 @@ class Application(object): try: os.setpgrp() except OSError, e: - if e[0] == errno.EPERM: - sys.stderr.write("Error: You should use " - "daemon mode here.\n") - raise + if e[0] != errno.EPERM: + raise self.configure_logging() try: