MCPcopy Create free account
hub / github.com/Coooolfan/onlyboxes / _shutdown

Function _shutdown

scripts/install.py:627–629  ·  view source on GitHub ↗
(signum, frame)

Source from the content-addressed store, hash-verified

625 sys.exit() which fires the atexit cleanup handler."""
626
627 def _shutdown(signum, frame):
628 print(f"\n{_c('33', 'Shutting down...')}")
629 sys.exit(0)
630
631 signal.signal(signal.SIGINT, _shutdown)
632 signal.signal(signal.SIGTERM, _shutdown)

Callers

nothing calls this directly

Calls 1

_cFunction · 0.85

Tested by

no test coverage detected