diff options
author | Russ Cox <rsc@swtch.com> | 2014-05-05 22:28:03 -0400 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2014-05-05 22:28:03 -0400 |
commit | 45f8ba54143323f08a21343633764caa59aa3ea3 (patch) | |
tree | 9e2cdf5f3dca146a0dceb96401926a6ba5a8d867 /src/cmd/acme | |
parent | 4a3fb87264f8bc03fc62f00ef335056f30d18023 (diff) | |
download | plan9port-45f8ba54143323f08a21343633764caa59aa3ea3.tar.gz plan9port-45f8ba54143323f08a21343633764caa59aa3ea3.tar.bz2 plan9port-45f8ba54143323f08a21343633764caa59aa3ea3.zip |
acme: fix two flush bugs in new log file
TBR=rsc
https://codereview.appspot.com/95010048
Diffstat (limited to 'src/cmd/acme')
-rw-r--r-- | src/cmd/acme/logf.c | 5 |
1 files changed, 3 insertions, 2 deletions
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; 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); } |