Remove UNUSED state

上级 ad87547f
......@@ -31,7 +31,7 @@ struct mtrace_stacks {
};
#endif
enum procstate { UNUSED, EMBRYO, SLEEPING, RUNNABLE, RUNNING, ZOMBIE };
enum procstate { EMBRYO, SLEEPING, RUNNABLE, RUNNING, ZOMBIE };
// Per-process state
struct proc {
......
......@@ -429,7 +429,6 @@ fork(int flags)
if((np->vmap = myproc()->vmap->copy(cow)) == 0){
ksfree(slab_stack, np->kstack);
np->kstack = 0;
set_proc_state(np, UNUSED);
if (!xnspid->remove(np->pid, &np))
panic("fork: ns_remove");
freeproc(np);
......@@ -498,7 +497,6 @@ wait(void)
ksfree(slab_stack, p->kstack);
p->kstack = 0;
p->vmap->decref();
set_proc_state(p, UNUSED);
if (!xnspid->remove(p->pid, &p))
panic("wait: ns_remove");
p->pid = 0;
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论