scheduler: hold reference on sched_getprocfrompid

This commit is contained in:
Matheus
2024-05-22 09:44:11 -03:00
parent a9b5451787
commit b61d391778
2 changed files with 13 additions and 2 deletions
+4
View File
@@ -35,6 +35,10 @@ syscallret_t syscall_kill(context_t *context, int pid, int signal) {
else
ret.errno = jobctl_signal(target, signal);
if (target) {
PROC_RELEASE(target);
}
ret.errno = 0;
ret.ret = 0;
return ret;