mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-28 20:03:22 +00:00
Exit when handle_user_signal fail
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
e75b6320ad
commit
5df8d59563
@ -87,12 +87,12 @@ pub fn create_new_user_task(
|
||||
if current_thread.is_exited() {
|
||||
break;
|
||||
}
|
||||
handle_pending_signal(user_ctx, &ctx, syscall_number).unwrap();
|
||||
handle_pending_signal(user_ctx, &ctx, syscall_number);
|
||||
// If current is suspended, wait for a signal to wake up self
|
||||
while current_thread.is_stopped() {
|
||||
Thread::yield_now();
|
||||
debug!("{} is suspended.", current_posix_thread.tid());
|
||||
handle_pending_signal(user_ctx, &ctx, None).unwrap();
|
||||
handle_pending_signal(user_ctx, &ctx, None);
|
||||
}
|
||||
if current_thread.is_exited() {
|
||||
debug!("exit due to signal");
|
||||
|
Reference in New Issue
Block a user