mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 20:58:22 +00:00
scheduler: pid refcount
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user