Display correct pid of already running instance

This commit is contained in:
Jakub Paweł Głazik 2014-07-31 01:31:46 +02:00
parent 6fdc5788db
commit ed94dd0267

View File

@ -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