scheduler: pid refcount

This commit is contained in:
Matheus
2024-04-28 18:45:43 -03:00
parent 8deb3a1144
commit e0c2cd9a2a
4 changed files with 38 additions and 2 deletions
+2 -1
View File
@@ -75,6 +75,7 @@ syscallret_t syscall_waitpid(context_t *context, pid_t pid, int *status, int opt
ret.errno = 0;
__assert(iterator);
sched_destroyproc(iterator);
// process will no longer be referenced by the child list
PROC_RELEASE(iterator);
return ret;
}