mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-17 12:47:16 +00:00
Propagate errors of futex operations when used in futex syscall instead of panic on them
by @jellllly420
This commit is contained in:
parent
4c1f6a4e32
commit
cf30599729
@ -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 _))
|
||||
|
Loading…
x
Reference in New Issue
Block a user