File tree 1 file changed +2
-0
lines changed
1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -486,13 +486,15 @@ static EXIT_STATUS: AtomicIsize = AtomicIsize::new(0);
486
486
///
487
487
/// Note that this is not synchronized against modifications of other threads.
488
488
#[ unstable( feature = "exit_status" , reason = "managing the exit status may change" ) ]
489
+ #[ deprecated( since = "1.2.0" , reason = "use process::exit instead" ) ]
489
490
pub fn set_exit_status ( code : i32 ) {
490
491
EXIT_STATUS . store ( code as isize , Ordering :: SeqCst )
491
492
}
492
493
493
494
/// Fetches the process's current exit code. This defaults to 0 and can change
494
495
/// by calling `set_exit_status`.
495
496
#[ unstable( feature = "exit_status" , reason = "managing the exit status may change" ) ]
497
+ #[ deprecated( since = "1.2.0" , reason = "use process::exit instead" ) ]
496
498
pub fn get_exit_status ( ) -> i32 {
497
499
EXIT_STATUS . load ( Ordering :: SeqCst ) as i32
498
500
}
You can’t perform that action at this time.
0 commit comments