Use rtabort! instead of rtprintpanic! + abort_internal
This commit is contained in:
parent
5051904d66
commit
17f418155e
@ -128,8 +128,7 @@ fn lang_start_internal(
|
|||||||
let ret_code = panic::catch_unwind(move || panic::catch_unwind(main).unwrap_or(101) as isize)
|
let ret_code = panic::catch_unwind(move || panic::catch_unwind(main).unwrap_or(101) as isize)
|
||||||
.map_err(move |e| {
|
.map_err(move |e| {
|
||||||
mem::forget(e);
|
mem::forget(e);
|
||||||
rtprintpanic!("drop of the panic payload panicked");
|
rtabort!("drop of the panic payload panicked");
|
||||||
sys::abort_internal()
|
|
||||||
});
|
});
|
||||||
panic::catch_unwind(cleanup).map_err(rt_abort)?;
|
panic::catch_unwind(cleanup).map_err(rt_abort)?;
|
||||||
ret_code
|
ret_code
|
||||||
|
Loading…
Reference in New Issue
Block a user