Skip to main content

exit_child

Function exit_child 

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

Exit the current child process with the given code.

Calls libc::_exit() which skips atexit handlers and stdio flushing. This is appropriate for forked child processes.

ยงSafety

This function terminates the process immediately. Only call from a forked child process.