[src]

Function std::os::set_exit_status

pub fn set_exit_status(code: int)

Sets the process exit code

Sets the exit code returned by the process if all supervised tasks terminate successfully (without failing). If the current root task fails and is supervised by the scheduler then any user-specified exit status is ignored and the process exits with the default failure status.

Note that this is not synchronized against modifications of other threads.