avoid a bug w/ exit()

This commit is contained in:
rtm 2008-08-28 00:53:24 +00:00
parent 56082468ea
commit 98754d687e

1
proc.c
View file

@ -126,6 +126,7 @@ copyproc(struct proc *p)
kfree(np->kstack, KSTACKSIZE); kfree(np->kstack, KSTACKSIZE);
np->kstack = 0; np->kstack = 0;
np->state = UNUSED; np->state = UNUSED;
np->parent = 0;
return 0; return 0;
} }
memmove(np->mem, p->mem, np->sz); memmove(np->mem, p->mem, np->sz);