(self)
| 200 | |
| 201 | class SigIntManager: |
| 202 | def __init__(self): |
| 203 | self._sig_int_triggered = False |
| 204 | self._action_triggered = False |
| 205 | self._action_done = False |
| 206 | self.ctx = signal_handler("SIGINT", self.handler) |
| 207 | self.debounce_interval = 20000000 # ns |
| 208 | self.last = None # monotonic time when we last processed SIGINT |
| 209 | |
| 210 | def __bool__(self): |
| 211 | # this will be True (and stay True) after the first Ctrl-C/SIGINT |
nothing calls this directly
no test coverage detected