MCPcopy
hub / github.com/benoitc/gunicorn / handle_winch

Method handle_winch

gunicorn/arbiter.py:343–350  ·  view source on GitHub ↗

SIGWINCH handling

(self)

Source from the content-addressed store, hash-verified

341 self.reexec()
342
343 def handle_winch(self):
344 """SIGWINCH handling"""
345 if self.cfg.daemon:
346 self.log.info("graceful stop of workers")
347 self.num_workers = 0
348 self.kill_workers(signal.SIGTERM)
349 else:
350 self.log.debug("SIGWINCH ignored. Not daemonized")
351
352 def maybe_promote_master(self):
353 if self.master_pid == 0:

Callers

nothing calls this directly

Calls 3

kill_workersMethod · 0.95
infoMethod · 0.45
debugMethod · 0.45

Tested by

no test coverage detected