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

Method kill_dirty_arbiter

gunicorn/arbiter.py:884–898  ·  view source on GitHub ↗

\ Send a signal to the dirty arbiter. :attr sig: `signal.SIG*` value

(self, sig)

Source from the content-addressed store, hash-verified

882 sys.exit(-1)
883
884 def kill_dirty_arbiter(self, sig):
885 """\
886 Send a signal to the dirty arbiter.
887
888 :attr sig: `signal.SIG*` value
889 """
890 if not self.dirty_arbiter_pid:
891 return
892
893 try:
894 os.kill(self.dirty_arbiter_pid, sig)
895 except OSError as e:
896 if e.errno == errno.ESRCH:
897 self.dirty_arbiter_pid = 0
898 self.dirty_arbiter = None
899
900 def reap_dirty_arbiter(self):
901 """\

Callers 3

handle_hupMethod · 0.95
handle_usr1Method · 0.95
stopMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected