tacme: fix two flush bugs in new log file - plan9port - [fork] Plan 9 from user space (HTM) git clone git://src.adamsgaard.dk/plan9port (DIR) Log (DIR) Files (DIR) Refs (DIR) README (DIR) LICENSE --- (DIR) commit 45f8ba54143323f08a21343633764caa59aa3ea3 (DIR) parent 4a3fb87264f8bc03fc62f00ef335056f30d18023 (HTM) Author: Russ Cox <rsc@swtch.com> Date: Mon, 5 May 2014 22:28:03 -0400 acme: fix two flush bugs in new log file TBR=rsc https://codereview.appspot.com/95010048 Diffstat: M src/cmd/acme/logf.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) --- (DIR) diff --git a/src/cmd/acme/logf.c b/src/cmd/acme/logf.c t@@ -100,7 +100,6 @@ xfidlogread(Xfid *x) if(x->flushed) { qunlock(&eventlog.lk); - respond(x, &fc, "read cancelled"); return; } t@@ -124,8 +123,10 @@ xfidlogflush(Xfid *x) qlock(&eventlog.lk); for(i=0; i<eventlog.nread; i++) { rx = eventlog.read[i]; - if(rx->fcall.tag == x->fcall.oldtag) + if(rx->fcall.tag == x->fcall.oldtag) { rx->flushed = TRUE; + rwakeupall(&eventlog.r); + } } qunlock(&eventlog.lk); }