Skip to content
Snippets Groups Projects
Commit 98754d68 authored by rtm's avatar rtm
Browse files

avoid a bug w/ exit()

parent 56082468
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment