mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Display correct pid of already running instance
This commit is contained in:
parent
6fdc5788db
commit
ed94dd0267
@ -25,7 +25,7 @@ class Pidfile(object):
|
||||
if oldpid == os.getpid():
|
||||
return
|
||||
raise RuntimeError("Already running on PID %s " \
|
||||
"(or pid file '%s' is stale)" % (os.getpid(), self.fname))
|
||||
"(or pid file '%s' is stale)" % (oldpid, self.fname))
|
||||
|
||||
self.pid = pid
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user