]> git.lizzy.rs Git - plan9front.git/commitdiff
devproc: can't wait for ourselfs to stop (thanks Shamar)
authorcinap_lenrek <cinap_lenrek@felloff.net>
Fri, 5 May 2017 22:49:47 +0000 (00:49 +0200)
committercinap_lenrek <cinap_lenrek@felloff.net>
Fri, 5 May 2017 22:49:47 +0000 (00:49 +0200)
sys/src/9/port/devproc.c

index b6218a64f21a8d6d485803810c68dc0d9fce026d..f55b9bb8933136c6439b654e695c1236516c6337 100644 (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";