URI: 
       tadd verbose9pserve environment variable; fix afid ref - plan9port - [fork] Plan 9 from user space
  HTML git clone git://src.adamsgaard.dk/plan9port
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
   DIR commit 3a6f92eed18aa29c7f5f2e150c0fb81adaa3a6bf
   DIR parent 5a79cf71c28b4c5f4e05a570fe97b79de283bbe7
  HTML Author: rsc <devnull@localhost>
       Date:   Fri, 18 Mar 2005 19:22:01 +0000
       
       add verbose9pserve environment variable; fix afid ref
       
       Diffstat:
         M src/cmd/9pserve.c                   |       7 ++++++-
       
       1 file changed, 6 insertions(+), 1 deletion(-)
       ---
   DIR diff --git a/src/cmd/9pserve.c b/src/cmd/9pserve.c
       t@@ -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();
       t@@ -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");