MCPcopy Create free account
hub / github.com/microsoft/BitNet / signal_handler

Function signal_handler

run_inference.py:39–41  ·  view source on GitHub ↗
(sig, frame)

Source from the content-addressed store, hash-verified

37 run_command(command)
38
39def signal_handler(sig, frame):
40 print("Ctrl+C pressed, exiting...")
41 sys.exit(0)
42
43if __name__ == "__main__":
44 signal.signal(signal.SIGINT, signal_handler)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected