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
@@ -64,7 +64,7 @@ int sched_signalall(int signal, proc_t *sender) {
pid_t currentpgid = jobctl_getpgid(current);
if (senderpgid == 0 || (signal == SIGCONT && currentpgid == senderpgid) || auth_process_check(&sender->cred, AUTH_ACTIONS_PROCESS_SIGNAL, current)) {
if (senderpgid == 0 || (signal == SIGCONT && currentpgid == senderpgid) || auth_process_check(&sender->cred, AUTH_ACTIONS_PROCESS_SIGNAL, current) == 0) {
++donecount;
signal_signalproc(current, signal);
}