Skip to content

Commit

Permalink
fix issue benoitc#55. Thanks!
Browse files Browse the repository at this point in the history
  • Loading branch information
Benoit Chesneau committed May 17, 2010
1 parent 21db2dd commit ed17054
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gunicorn/pidfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def create(self, pid):
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)
Expand Down

0 comments on commit ed17054

Please sign in to comment.