devproc: can't wait for up to stop
This commit is contained in:
parent
ecd6dddf86
commit
b08218529d
|
@ -1325,6 +1325,8 @@ procstopwait(Proc *p, int ctl)
|
||||||
error(Eprocdied);
|
error(Eprocdied);
|
||||||
if(ctl != 0)
|
if(ctl != 0)
|
||||||
p->procctl = ctl;
|
p->procctl = ctl;
|
||||||
|
if(p == up)
|
||||||
|
return;
|
||||||
p->pdbg = up;
|
p->pdbg = up;
|
||||||
qunlock(&p->debug);
|
qunlock(&p->debug);
|
||||||
up->psstate = "Stopwait";
|
up->psstate = "Stopwait";
|
||||||
|
|
Loading…
Reference in New Issue