Merge pull request #1042 from brijeshb42/master

Updated gunicorn/pidfile.py
This commit is contained in:
Randall Leeds 2015-07-08 23:33:31 -07:00
commit d971eb4464

View File

@ -66,9 +66,9 @@ class Pidfile(object):
return
try:
with open(self.fname, "r") as f:
wpid = int(f.read() or 0)
if wpid <= 0:
try:
wpid = int(f.read())
except ValueError:
return
try: