From 95520d47281dcbd1eb92c18cbf267611cbcb58c4 Mon Sep 17 00:00:00 2001 From: benoitc Date: Wed, 24 Nov 2010 16:33:44 +0100 Subject: [PATCH] set permissions of the pidfile so other user can read it and use it. --- gunicorn/pidfile.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gunicorn/pidfile.py b/gunicorn/pidfile.py index bbdf1456..7e303af7 100644 --- a/gunicorn/pidfile.py +++ b/gunicorn/pidfile.py @@ -42,6 +42,9 @@ class Pidfile(object): else: self.fname = fname os.close(fd) + + # set permissions to -rw-r--r-- + os.chmod(self.fname, 420) def rename(self, path): self.unlink()