mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Merge pull request #1042 from brijeshb42/master
Updated gunicorn/pidfile.py
This commit is contained in:
commit
d971eb4464
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user