MCPcopy Index your code
hub / github.com/borgbackup/borg / __init__

Method __init__

src/borg/helpers/process.py:202–208  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

200
201class 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

Callers

nothing calls this directly

Calls 1

signal_handlerFunction · 0.85

Tested by

no test coverage detected