From 4a3fb87264f8bc03fc62f00ef335056f30d18023 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Wed, 30 Apr 2014 12:14:29 -0400 Subject: acme: add log file in acme root directory Reading /mnt/acme/log reports a log of window create, put, and delete events, as they happen. It blocks until the next event is available. Example log output: 8 new /Users/rsc/foo.go 8 put /Users/rsc/foo.go 8 del /Users/rsc/foo.go This lets acme-aware programs react to file writes, for example compiling code, running a test, or updating an import block. TBR=r R=r https://codereview.appspot.com/89560044 --- src/cmd/acme/xfid.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/cmd/acme/xfid.c') diff --git a/src/cmd/acme/xfid.c b/src/cmd/acme/xfid.c index 671b324f..33732def 100644 --- a/src/cmd/acme/xfid.c +++ b/src/cmd/acme/xfid.c @@ -63,6 +63,8 @@ xfidflush(Xfid *x) Column *c; Xfid *wx; + xfidlogflush(x); + /* search windows for matching tag */ qlock(&row.lk); for(j=0; j