From ed94dd0267cd69694ee62b62296d26c165fbc432 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Pawe=C5=82=20G=C5=82azik?= Date: Thu, 31 Jul 2014 01:31:46 +0200 Subject: [PATCH] Display correct pid of already running instance --- gunicorn/pidfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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