Skip to main content

ignore_console_close_events

Function ignore_console_close_events 

Source
pub fn ignore_console_close_events()
Expand description

Ignore CTRL_CLOSE / CTRL_LOGOFF / CTRL_SHUTDOWN so closing a terminal that somehow still owns us does not kill a supervised node. CTRL_C still works for interactive CLI. No-op on non-Windows.