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

Method init_signals

gunicorn/arbiter.py:201–211  ·  view source on GitHub ↗

\ Initialize master signal handling. Most of the signals are queued. Child signals only wake up the master.

(self)

Source from the content-addressed store, hash-verified

199 self.cfg.when_ready(self)
200
201 def init_signals(self):
202 """\
203 Initialize master signal handling. Most of the signals
204 are queued. Child signals only wake up the master.
205 """
206 self.log.close_on_exec()
207
208 # initialize all signals
209 for s in self.SIGNALS:
210 signal.signal(s, self.signal)
211 signal.signal(signal.SIGCHLD, self.signal_chld)
212
213 def signal(self, sig, frame):
214 """Signal handler - NO LOGGING, just queue the signal."""

Calls 2

signalMethod · 0.80
close_on_execMethod · 0.45