From 1db805c7f6b3509d127eaf081863b54842b84389 Mon Sep 17 00:00:00 2001 From: Benoit Chesneau Date: Thu, 5 Jan 2017 22:34:34 +0100 Subject: [PATCH] no fds are given by default in gunicorn fix #1423 --- gunicorn/arbiter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gunicorn/arbiter.py b/gunicorn/arbiter.py index 7296d2d7..1123bdb5 100644 --- a/gunicorn/arbiter.py +++ b/gunicorn/arbiter.py @@ -142,8 +142,7 @@ class Arbiter(object): self.init_signals() if not self.LISTENERS: - fds = [] - + fds = None listen_fds = systemd.listen_fds() if listen_fds: self.systemd = True @@ -151,6 +150,7 @@ class Arbiter(object): systemd.SD_LISTEN_FDS_START + listen_fds) elif self.master_pid: + fds = [] for fd in os.environ.pop('GUNICORN_FD').split(','): fds.append(int(fd))