mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
fix error
This commit is contained in:
parent
21d3f7ccd9
commit
701c88c019
@ -143,8 +143,9 @@ class HTTPServer(object):
|
||||
time.sleep(0.1)
|
||||
m = 0 if m == 1 else 1
|
||||
os.fchmod(alive, m)
|
||||
except errno.EAGAIN, errno.ECONNABORTED:
|
||||
pass
|
||||
except IOError, e:
|
||||
if e.errno == errno.EAGAIN or e.errno == errno.ECONNABORTED:
|
||||
pass
|
||||
|
||||
if ppid != os.getppid(): return
|
||||
m = 0 if m == 1 else 1
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user