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

Function signal_handler

run_inference_server.py:46–48  ·  view source on GitHub ↗
(sig, frame)

Source from the content-addressed store, hash-verified

44 run_command(command)
45
46def signal_handler(sig, frame):
47 print("Ctrl+C pressed, shutting down server...")
48 sys.exit(0)
49
50if __name__ == "__main__":
51 signal.signal(signal.SIGINT, signal_handler)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected