mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Ignore SIGWINCH in worker. Fix crash on OpenBSD
This commit is contained in:
parent
d20fd9b411
commit
6863bba84b
@ -57,6 +57,7 @@ class Worker(object):
|
||||
signal.signal(signal.SIGUSR1, self.handle_usr1)
|
||||
signal.signal(signal.SIGTERM, self.handle_exit)
|
||||
signal.signal(signal.SIGINT, self.handle_exit)
|
||||
signal.signal(signal.SIGWINCH, self.handle_winch)
|
||||
|
||||
def handle_usr1(self, sig, frame):
|
||||
self.nr = -65536;
|
||||
@ -70,6 +71,10 @@ class Worker(object):
|
||||
|
||||
def handle_exit(self, sig, frame):
|
||||
sys.exit(0)
|
||||
|
||||
def handle_winch(self, sig, fname):
|
||||
# Ignore SIGWINCH in worker. Fix crash on OpenBSD
|
||||
return
|
||||
|
||||
def notify(self):
|
||||
"""\
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user