From ed170541378806b9babc15594c08c4b3784c7944 Mon Sep 17 00:00:00 2001 From: Benoit Chesneau Date: Mon, 17 May 2010 16:31:25 +0200 Subject: [PATCH] fix issue #55. Thanks! --- gunicorn/pidfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gunicorn/pidfile.py b/gunicorn/pidfile.py index 4684a772..845d7427 100644 --- a/gunicorn/pidfile.py +++ b/gunicorn/pidfile.py @@ -32,7 +32,7 @@ class Pidfile(object): self.pid = pid # Write pidfile - fd, fname = tempfile.mkstemp() + fd, fname = tempfile.mkstemp(dir=os.path.dirname(self.fname)) os.write(fd, "%s\n" % self.pid) if self.fname: os.rename(fname, self.fname)