diff --git a/gunicorn/pidfile.py b/gunicorn/pidfile.py index 2309ba88..82699508 100644 --- a/gunicorn/pidfile.py +++ b/gunicorn/pidfile.py @@ -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