Commits

Russ Cox committed 9bfe121

acme: fix two flush bugs in new log file

TBR=rsc
https://codereview.appspot.com/95010048

Comments (0)

Files changed (1)

src/cmd/acme/logf.c

 
 	if(x->flushed) {
 		qunlock(&eventlog.lk);
-		respond(x, &fc, "read cancelled");
 		return;
 	}
 
 	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);
 }