kernel: (needs review) let threads sleep on their own children?

This commit is contained in:
K. Lange 2021-06-23 22:42:48 +09:00
parent c75e849659
commit 62128bd1aa

View File

@ -916,9 +916,11 @@ static int wait_candidate(volatile process_t * parent, int pid, int options, vol
int waitpid(int pid, int * status, int options) {
volatile process_t * volatile proc = (process_t*)this_core->current_process;
#if 0
if (proc->group) {
proc = process_from_pid(proc->group);
}
#endif
do {
volatile process_t * candidate = NULL;