Propagate errors of futex operations when used in futex syscall instead of panic on them

by @jellllly420
This commit is contained in:
Marsman1996 2024-08-16 16:17:09 +08:00 committed by Tate, Hongliang Tian
parent 4c1f6a4e32
commit cf30599729

View File

@ -69,8 +69,7 @@ pub fn sys_futex(
.map(|nwakes| nwakes as _)
}
_ => panic!("Unsupported futex operations"),
}
.unwrap();
}?;
debug!("futex returns, tid= {} ", ctx.thread.tid());
Ok(SyscallReturn::Return(res as _))