From: neilbrown Date: Tue, 31 Aug 2004 06:37:20 +0000 (+0000) Subject: fix fd bug X-Git-Tag: nfs-utils-1-0-6-post3~1 X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=commitdiff_plain;h=2c91715a9c8dbf18df1666f70e78d6e36e123ca0;ds=sidebyside fix fd bug --- diff --git a/ChangeLog b/ChangeLog index 0ebb3d8..34be741 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-08-31 NeilBrown + * 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 * debian/nfs-kernel-server.init(start,stop) mount the nfsd diff --git a/utils/mountd/cache.c b/utils/mountd/cache.c index 3a16641..77029f4 100644 --- a/utils/mountd/cache.c +++ b/utils/mountd/cache.c @@ -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;