Merge branch 'master' of ssh://review.rcs.uwaterloo.ca:77/source/castoros
This commit is contained in:
commit
fde5d543a6
@ -102,11 +102,6 @@ Process_Destroy(Process *proc)
|
|||||||
// XXX: We need to promote zombie processes to our parent
|
// XXX: We need to promote zombie processes to our parent
|
||||||
// XXX: Release the semaphore as well
|
// 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);
|
Spinlock_Lock(&procLock);
|
||||||
TAILQ_REMOVE(&processList, proc, processList);
|
TAILQ_REMOVE(&processList, proc, processList);
|
||||||
Spinlock_Unlock(&procLock);
|
Spinlock_Unlock(&procLock);
|
||||||
|
Loading…
Reference in New Issue
Block a user