mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-18 03:56:42 +00:00
Propagate errors of futex operations when used in futex syscall instead of panic on them
by @jellllly420
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
4c1f6a4e32
commit
cf30599729
@ -69,8 +69,7 @@ pub fn sys_futex(
|
|||||||
.map(|nwakes| nwakes as _)
|
.map(|nwakes| nwakes as _)
|
||||||
}
|
}
|
||||||
_ => panic!("Unsupported futex operations"),
|
_ => panic!("Unsupported futex operations"),
|
||||||
}
|
}?;
|
||||||
.unwrap();
|
|
||||||
|
|
||||||
debug!("futex returns, tid= {} ", ctx.thread.tid());
|
debug!("futex returns, tid= {} ", ctx.thread.tid());
|
||||||
Ok(SyscallReturn::Return(res as _))
|
Ok(SyscallReturn::Return(res as _))
|
||||||
|
Reference in New Issue
Block a user