ref: 30d6e6879e9acff30267a146ecb956ac470a38db
parent: 0260be4e9f73d03d30b9294323056695c82cbb2f
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Wed Jan 7 12:03:20 EST 2026
devswap: fix mistake (missing matchseg)
--- a/sys/src/9/port/devswap.c
+++ b/sys/src/9/port/devswap.c
@@ -170,7 +170,7 @@
qunlock(&kp->debug);
if(s != nil && s->ref > 1){ for(i = 0; (p = proctab(i)) != nil; i++) {- if(p == kp || !matchseg(p, s) || !canqlock(&p->debug))
+ if(p == kp || p->seg[BSEG] != s || !canqlock(&p->debug))
continue;
killproc(p, Proc_exitbig);
qunlock(&p->debug);
--
⑨