Skip to main content

install_ctrlc_handler

Function install_ctrlc_handler 

Source
pub fn install_ctrlc_handler()
Expand description

Install the cooperative SIGINT handler (idempotent).

Call this at the start of a long-running, cancellable CLI operation. The daemon/MCP server never calls it, so is_cancelled stays false there and background embedding is unaffected.