signals: fix sigset

This commit is contained in:
Matheus
2024-09-05 18:23:13 -03:00
parent d65bec9c66
commit 24be70ac29
4 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ syscallret_t syscall_kill(context_t *context, int pid, int signal) {
goto leave;
if (pid >= 1) {
if (signal != SIGCONT && jobctl_getpgid(target) != jobctl_getpgid(_cpu()->thread->proc)) {
if (signal != SIGCONT || jobctl_getpgid(target) != jobctl_getpgid(_cpu()->thread->proc)) {
ret.errno = auth_process_check(&_cpu()->thread->proc->cred, AUTH_ACTIONS_PROCESS_SIGNAL, target);
if (ret.errno)
goto leave;