This commit is contained in:
Frans Kaashoek 2019-07-04 08:54:16 -04:00
parent 47e69250d0
commit 6bfb078b14

View file

@ -288,10 +288,10 @@ fork(void)
return pid;
}
// Pass p's abandoned children to init.
void reparent(struct proc *p) {
struct proc *pp;
// Pass p's abandoned children to init.
for(pp = ptable.proc; pp < &ptable.proc[NPROC]; pp++){
acquire(&pp->lock);
if(pp->parent == p){