From b08218529deba4e3fc1b450120e9bacb48529423 Mon Sep 17 00:00:00 2001 From: Giacomo Tesio Date: Sat, 6 May 2017 16:03:16 +0200 Subject: [PATCH] devproc: can't wait for up to stop --- sys/src/kern/port/devproc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/src/kern/port/devproc.c b/sys/src/kern/port/devproc.c index d6b57dc..9003ff9 100644 --- a/sys/src/kern/port/devproc.c +++ b/sys/src/kern/port/devproc.c @@ -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";