mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-25 02:13:24 +00:00
do_exit: Ignore unwrap panic caused by munmap
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
bacefaffc8
commit
e32687e6d5
@ -26,9 +26,9 @@ pub fn do_exit(thread: &Thread, posix_thread: &PosixThread, term_status: TermSta
|
|||||||
if *clear_ctid != 0 {
|
if *clear_ctid != 0 {
|
||||||
futex_wake(*clear_ctid, 1, None)?;
|
futex_wake(*clear_ctid, 1, None)?;
|
||||||
// FIXME: the correct write length?
|
// FIXME: the correct write length?
|
||||||
get_current_userspace!()
|
if let Err(e) = get_current_userspace!().write_val(*clear_ctid, &0u32) {
|
||||||
.write_val(*clear_ctid, &0u32)
|
debug!("Ignore error during exit process: {:?}", e);
|
||||||
.unwrap();
|
}
|
||||||
*clear_ctid = 0;
|
*clear_ctid = 0;
|
||||||
}
|
}
|
||||||
// exit the robust list: walk the robust list; mark futex words as dead and do futex wake
|
// exit the robust list: walk the robust list; mark futex words as dead and do futex wake
|
||||||
|
Reference in New Issue
Block a user