MCPcopy Create free account
hub / github.com/dedsec1121fk/DedSec / signal_handler

Function signal_handler

Scripts/Developer Base/Devices Finder.py:64–69  ·  view source on GitHub ↗
(sig, frame)

Source from the content-addressed store, hash-verified

62
63
64def signal_handler(sig, frame):
65 global EXIT_REQUESTED
66 if not EXIT_REQUESTED:
67 EXIT_REQUESTED = True
68 print(ccolor(YELLOW, "\n\n [!] Interrupt received. Exiting cleanly..."))
69 sys.exit(0)
70
71
72signal.signal(signal.SIGINT, signal_handler)

Callers

nothing calls this directly

Calls 2

printFunction · 0.85
ccolorFunction · 0.70

Tested by

no test coverage detected