devproc: can't wait for ourselfs to stop (thanks Shamar)
This commit is contained in:
parent
59e8bc0e23
commit
f317d233f4
1 changed files with 2 additions and 0 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue