plan9port

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

commit 3a6f92eed18aa29c7f5f2e150c0fb81adaa3a6bf
parent 5a79cf71c28b4c5f4e05a570fe97b79de283bbe7
Author: rsc <devnull@localhost>
Date:   Fri, 18 Mar 2005 19:22:01 +0000

add verbose9pserve environment variable; fix afid ref

Diffstat:
Msrc/cmd/9pserve.c | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/cmd/9pserve.c b/src/cmd/9pserve.c @@ -127,9 +127,12 @@ extern int _threaddebuglevel; void threadmain(int argc, char **argv) { - char *file; + char *file, *x; int fd; + x = getenv("verbose9pserve"); + if(x) + verbose = atoi(x); ARGBEGIN{ default: usage(); @@ -338,6 +341,8 @@ connthread(void *arg) err(m, "unknown fid"); continue; } + if(m->afid) + m->afid->ref++; m->fid = fidnew(m->tx.fid); if(puthash(c->fid, m->tx.fid, m->fid) < 0){ err(m, "duplicate fid");