summaryrefslogtreecommitdiff
path: root/sys/src/cmd/rio/xfid.c
diff options
context:
space:
mode:
authorJacob Moody <moody@posixcafe.org>2022-08-21 22:24:45 +0000
committerJacob Moody <moody@posixcafe.org>2022-08-21 22:24:45 +0000
commit6c8de2713c34622799504f9817afe6876c5621cf (patch)
tree53c0c2158472165514455977924695ffa8de1934 /sys/src/cmd/rio/xfid.c
parentaea866a49300a5e31e737d8fe54763711e693f05 (diff)
rio: kbdtap deadlocks are verboden
This should make kbdtap related deadlocks impossible. The tap thread has been rewritten to use one alt which always allows for the window handling code to nofiy us regardless if we're send'ing or recv'ing. We also move the start/stop messages to their own channel and can the reset code for now.
Diffstat (limited to 'sys/src/cmd/rio/xfid.c')
-rw-r--r--sys/src/cmd/rio/xfid.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/src/cmd/rio/xfid.c b/sys/src/cmd/rio/xfid.c
index 383d2cee7..cd7f57387 100644
--- a/sys/src/cmd/rio/xfid.c
+++ b/sys/src/cmd/rio/xfid.c
@@ -308,7 +308,7 @@ xfidopen(Xfid *x)
}
break;
case Qtap:
- chanprint(fromtap, "%c", Tapon);
+ chanprint(ctltap, "%c", Tapon);
break;
}
t.qid = x->f->qid;
@@ -365,7 +365,7 @@ xfidclose(Xfid *x)
w->wctlopen = FALSE;
break;
case Qtap:
- chanprint(fromtap, "%c", Tapoff);
+ chanprint(ctltap, "%c", Tapoff);
break;
}
wclose(w);