Function std::env::set_exit_status
[−]
[src]
pub fn set_exit_status(code: i32)
: managing the exit status may change
Sets the process exit code
Sets the exit code returned by the process if all supervised threads terminate successfully (without panicking). If the current root thread panics and is supervised by the scheduler then any user-specified exit status is ignored and the process exits with the default panic status.
Note that this is not synchronized against modifications of other threads.