From 45f8ba54143323f08a21343633764caa59aa3ea3 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Mon, 5 May 2014 22:28:03 -0400 Subject: acme: fix two flush bugs in new log file TBR=rsc https://codereview.appspot.com/95010048 --- src/cmd/acme/logf.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/cmd/acme') diff --git a/src/cmd/acme/logf.c b/src/cmd/acme/logf.c index ebcd4bfd..82b3d80c 100644 --- a/src/cmd/acme/logf.c +++ b/src/cmd/acme/logf.c @@ -100,7 +100,6 @@ xfidlogread(Xfid *x) if(x->flushed) { qunlock(&eventlog.lk); - respond(x, &fc, "read cancelled"); return; } @@ -124,8 +123,10 @@ xfidlogflush(Xfid *x) qlock(&eventlog.lk); for(i=0; ifcall.tag == x->fcall.oldtag) + if(rx->fcall.tag == x->fcall.oldtag) { rx->flushed = TRUE; + rwakeupall(&eventlog.r); + } } qunlock(&eventlog.lk); } -- cgit v1.2.3