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 return
try: try:
with open(self.fname, "r") as f: with open(self.fname, "r") as f:
wpid = int(f.read() or 0) try:
wpid = int(f.read())
if wpid <= 0: except ValueError:
return return
try: try: