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

Function signal_handler

setup_env.py:235–237  ·  view source on GitHub ↗
(sig, frame)

Source from the content-addressed store, hash-verified

233 return parser.parse_args()
234
235def signal_handler(sig, frame):
236 logging.info("Ctrl+C pressed, exiting...")
237 sys.exit(0)
238
239if __name__ == "__main__":
240 signal.signal(signal.SIGINT, signal_handler)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected