mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-20 13:06:33 +00:00
Return when sigset size error for rt_sigsuspend, rt_sigprocmask and rt_sigaction
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
ab8b6afee5
commit
44760eb5fa
@ -22,6 +22,10 @@ pub fn sys_rt_sigaction(
|
||||
sigset_size
|
||||
);
|
||||
|
||||
if sigset_size != 8 {
|
||||
return_errno_with_message!(Errno::EINVAL, "sigset size is not equal to 8");
|
||||
}
|
||||
|
||||
let mut sig_dispositions = ctx.process.sig_dispositions().lock();
|
||||
|
||||
let old_action = if sig_action_addr != 0 {
|
||||
|
Reference in New Issue
Block a user