mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
fix issue #55. Thanks!
This commit is contained in:
parent
21db2dd048
commit
ed17054137
@ -32,7 +32,7 @@ class Pidfile(object):
|
|||||||
self.pid = pid
|
self.pid = pid
|
||||||
|
|
||||||
# Write pidfile
|
# Write pidfile
|
||||||
fd, fname = tempfile.mkstemp()
|
fd, fname = tempfile.mkstemp(dir=os.path.dirname(self.fname))
|
||||||
os.write(fd, "%s\n" % self.pid)
|
os.write(fd, "%s\n" % self.pid)
|
||||||
if self.fname:
|
if self.fname:
|
||||||
os.rename(fname, self.fname)
|
os.rename(fname, self.fname)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user