diff options
author | rsc <devnull@localhost> | 2005-01-19 03:53:20 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-01-19 03:53:20 +0000 |
commit | 6135dd691688795d5e0306d66494502ec12f8d1c (patch) | |
tree | 08c4303964ff303786c054ba0d418df399dd1b28 /src/lib9pclient | |
parent | 83696711042528dda8f3c16545f79c4bed5a5b85 (diff) | |
download | plan9port-6135dd691688795d5e0306d66494502ec12f8d1c.tar.gz plan9port-6135dd691688795d5e0306d66494502ec12f8d1c.tar.bz2 plan9port-6135dd691688795d5e0306d66494502ec12f8d1c.zip |
do not close -1
Diffstat (limited to 'src/lib9pclient')
-rw-r--r-- | src/lib9pclient/fs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib9pclient/fs.c b/src/lib9pclient/fs.c index dfb3bc9f..eda023bc 100644 --- a/src/lib9pclient/fs.c +++ b/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) |