]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
fix fd bug
authorneilbrown <neilbrown>
Tue, 31 Aug 2004 06:37:20 +0000 (06:37 +0000)
committerneilbrown <neilbrown>
Tue, 31 Aug 2004 06:37:20 +0000 (06:37 +0000)
ChangeLog
utils/mountd/cache.c

index 0ebb3d8e008f3145a51dc519bc8685d828cd96b3..34be7411fe1370e8d29f32b22af44f53f4303306 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-08-31 NeilBrown <neilb@cse.unsw.edu.au>
+       * utils/mountd/cache.c(cache_process_req): clear fd after
+       processing so as not to confused libc/sunrpc into thinking
+       it need to do something with that fd.
+       
 2004-08-31 NeilBrown <neilb@cse.unsw.edu.au>
 
        * debian/nfs-kernel-server.init(start,stop) mount the nfsd
index 3a166419e4e7892cce9970da192b95e5de9f24ec..77029f446bff8fd33957613bbe116869148583a4 100644 (file)
@@ -315,6 +315,7 @@ int cache_process_req(fd_set *readfds)
                    FD_ISSET(fileno(cachelist[i].f), readfds)) {
                        cnt++;
                        cachelist[i].cache_handle(cachelist[i].f);
+                       FD_CLR(fileno(cachelist[i].f), readfds);
                }
        }
        return cnt;