commit 6135dd691688795d5e0306d66494502ec12f8d1c from: rsc date: Wed Jan 19 03:53:20 2005 UTC do not close -1 commit - 83696711042528dda8f3c16545f79c4bed5a5b85 commit + 6135dd691688795d5e0306d66494502ec12f8d1c blob - dfb3bc9f31def80d401d854d0abd826526580f05 blob + eda023bcd139be353c85a1b9d423f65ef8fcb5a1 --- src/lib9pclient/fs.c +++ src/lib9pclient/fs.c @@ -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)