From d0f236206a51a903c03ed2a5a071e69643d4ad48 Mon Sep 17 00:00:00 2001 From: Emil Tsalapatis Date: Tue, 5 Sep 2023 17:26:34 -0400 Subject: [PATCH] do not remove process from parent zombie list during Process_Destroy --- sys/kern/process.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/sys/kern/process.c b/sys/kern/process.c index 3449f1a..075a8f2 100644 --- a/sys/kern/process.c +++ b/sys/kern/process.c @@ -102,11 +102,6 @@ Process_Destroy(Process *proc) // XXX: We need to promote zombie processes to our parent // XXX: Release the semaphore as well - if (proc->parent) { - Spinlock_Lock(&proc->parent->lock); - TAILQ_REMOVE(&proc->parent->zombieProc, proc, siblingList); - Spinlock_Unlock(&proc->parent->lock); - } Spinlock_Lock(&procLock); TAILQ_REMOVE(&processList, proc, processList); Spinlock_Unlock(&procLock);