devproc: can't wait for up to stop

This commit is contained in:
Giacomo Tesio 2017-05-06 16:03:16 +02:00
parent ecd6dddf86
commit b08218529d
1 changed files with 2 additions and 0 deletions

View File

@ -1325,6 +1325,8 @@ procstopwait(Proc *p, int ctl)
error(Eprocdied);
if(ctl != 0)
p->procctl = ctl;
if(p == up)
return;
p->pdbg = up;
qunlock(&p->debug);
up->psstate = "Stopwait";