avoid a bug w/ exit()
This commit is contained in:
parent
56082468ea
commit
98754d687e
1 changed files with 1 additions and 0 deletions
1
proc.c
1
proc.c
|
@ -126,6 +126,7 @@ copyproc(struct proc *p)
|
|||
kfree(np->kstack, KSTACKSIZE);
|
||||
np->kstack = 0;
|
||||
np->state = UNUSED;
|
||||
np->parent = 0;
|
||||
return 0;
|
||||
}
|
||||
memmove(np->mem, p->mem, np->sz);
|
||||
|
|
Loading…
Reference in a new issue