MCPcopy Create free account
hub / github.com/IBM/mcp-cli / handler

Function handler

src/mcp_cli/main.py:1770–1773  ·  view source on GitHub ↗
(sig, _frame)

Source from the content-addressed store, hash-verified

1768 """Setup signal handlers for clean shutdown."""
1769
1770 def handler(sig, _frame):
1771 logger.debug(f"Received signal {sig}, shutting down")
1772 restore_terminal()
1773 sys.exit(0)
1774
1775 signal.signal(signal.SIGINT, handler)
1776 signal.signal(signal.SIGTERM, handler)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected