Skip to main content

exit_on_interrupt

Function exit_on_interrupt 

Source
pub fn exit_on_interrupt()
Expand description

Exits with status 1 on Ctrl-C, as the C++ tools’ SIGINT handler does.

The process exits from the handler thread without running destructors, so no detach is sent to the base. A failure to install the handler (one is already installed) is ignored, leaving the existing handler in place.