From 5a8e63b2f016735364d17866d5e2bcb35d20c78b Mon Sep 17 00:00:00 2001 From: rsc Date: Sun, 29 Feb 2004 22:10:26 +0000 Subject: Fighting the good fight. Move libfmt, libutf into subdirectories of lib9. Add poll-based socket i/o to libthread, so that we can avoid using multiple procs when possible, thus removing dependence on crappy pthreads implementations. Convert samterm, acme to the single-proc libthread. Bring libcomplete, acme up-to-date w.r.t. Plan 9 distribution. --- src/cmd/acme/xfid.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/cmd/acme/xfid.c') diff --git a/src/cmd/acme/xfid.c b/src/cmd/acme/xfid.c index 13af7395..b3bef2cd 100644 --- a/src/cmd/acme/xfid.c +++ b/src/cmd/acme/xfid.c @@ -383,7 +383,7 @@ xfidwrite(Xfid *x) x->fcall.data[x->fcall.count] = 0; switch(qid){ case Qcons: - w = errorwin(x->f->mntdir, 'X', nil); + w = errorwin(x->f->mntdir, 'X'); t=&w->body; goto BodyTag; @@ -543,6 +543,7 @@ xfidwrite(Xfid *x) } if(w) winunlock(w); + flushwarnings(1); } void @@ -813,6 +814,7 @@ xfideventwrite(Xfid *x, Window *w) qunlock(&row.lk); goto Rescue; } + flushwarnings(0); qunlock(&row.lk); } @@ -1030,6 +1032,7 @@ xfidindexread(Xfid *x) b[n++] = '\n'; } } + flushwarnings(0); qunlock(&row.lk); off = x->fcall.offset; cnt = x->fcall.count; -- cgit v1.2.3