plan9port

fork of plan9port with libvec, libstr and libsdb
Log | Files | Refs | README | LICENSE

commit 45f8ba54143323f08a21343633764caa59aa3ea3
parent 4a3fb87264f8bc03fc62f00ef335056f30d18023
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:
Msrc/cmd/acme/logf.c | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git 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; 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); }