devproc: can't wait for ourselfs to stop (thanks Shamar)

This commit is contained in:
cinap_lenrek 2017-05-06 00:49:47 +02:00
parent 59e8bc0e23
commit f317d233f4

View file

@ -1212,6 +1212,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";