Skip to main content

emergency_exit

Function emergency_exit 

Source
pub fn emergency_exit(code: i32) -> !
Expand description

Terminate the process immediately with code.

On Unix this is a raw _exit syscall: no Rust destructors, atexit handlers, or thread-local destructors run after it. Other platforms fall back to std::process::exit and follow its cleanup semantics. Callers must flush any buffered output they care about before calling it.