Skip to main content

install

Function install 

Source
pub fn install(status: u8) -> Result<(), InstallError>
Expand description

Install kizz’s handler of stack overflows for the process, which exits with status after an overflow, and set up the calling thread, which must be the main thread, first. The main thread keeps its alternate stack.

A second call does nothing.

§Errors

An InstallError that names the call that failed and the system’s error, after the parts that succeeded are undone, so the handler is installed for both signals or for neither.