ref: f317d233f46bdc85c02c0a991ac2a4788ad34fdb
parent: 59e8bc0e233e92a3bfd195f51b83fe54daa7ed93
author: cinap_lenrek <[email protected]>
date: Fri May 5 20:49:47 EDT 2017
devproc: can't wait for ourselfs to stop (thanks Shamar)
--- a/sys/src/9/port/devproc.c
+++ b/sys/src/9/port/devproc.c
@@ -1212,6 +1212,8 @@
error(Eprocdied);
if(ctl != 0)
p->procctl = ctl;
+ if(p == up)
+ return;
p->pdbg = up;
qunlock(&p->debug);
up->psstate = "Stopwait";