sigaction returns -EINVAL, when sig == SIGKILL or SIGSTOP

This commit is contained in:
Tomoki Shirasawa
2014-08-21 14:04:38 +09:00
parent 78d10cce80
commit dd8b2a8f15

View File

@ -110,6 +110,8 @@ SYSCALL_DECLARE(rt_sigaction)
struct k_sigaction new_sa, old_sa;
int rc;
if(sig == SIGKILL || sig == SIGSTOP)
return -EINVAL;
if (sigsetsize != sizeof(sigset_t))
return -EINVAL;