do not remove process from parent zombie list during Process_Destroy

This commit is contained in:
Emil Tsalapatis 2023-09-05 17:26:34 -04:00
parent 1c88ad598c
commit d0f236206a

View File

@ -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);