tdo not close -1 - plan9port - [fork] Plan 9 from user space
 (HTM) git clone git://src.adamsgaard.dk/plan9port
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 6135dd691688795d5e0306d66494502ec12f8d1c
 (DIR) parent 83696711042528dda8f3c16545f79c4bed5a5b85
 (HTM) Author: rsc <devnull@localhost>
       Date:   Wed, 19 Jan 2005 03:53:20 +0000
       
       do not close -1
       
       Diffstat:
         M src/lib9pclient/fs.c                |       3 ++-
       
       1 file changed, 2 insertions(+), 1 deletion(-)
       ---
 (DIR) diff --git a/src/lib9pclient/fs.c b/src/lib9pclient/fs.c
       t@@ -94,7 +94,8 @@ _fsdecref(CFsys *fs)
                --fs->ref;
                //fprint(2, "fsdecref %p to %d\n", fs, fs->ref);
                if(fs->ref == 0){
       -                close(fs->fd);
       +                if(fs->fd >= 0)
       +                        close(fs->fd);
                        /* trim the list down to just the first in each chunk */
                        for(l=&fs->freefid; *l; ){
                                if((*l)->fid%CFidchunk == 0)