\ Initialize master signal handling. Most of the signals are queued. Child signals only wake up the master.
(self)
| 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.""" |