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
|
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:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user