summaryrefslogtreecommitdiffstats
path: root/support/nfs/cacheio.c
diff options
context:
space:
mode:
Diffstat (limited to 'support/nfs/cacheio.c')
-rw-r--r--support/nfs/cacheio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/support/nfs/cacheio.c b/support/nfs/cacheio.c
index 77facb1..ff5b028 100644
--- a/support/nfs/cacheio.c
+++ b/support/nfs/cacheio.c
@@ -260,7 +260,7 @@ cache_flush(int force)
int fd;
sprintf(path, "/proc/net/rpc/%s/flush", cachelist[c]);
fd = open(path, O_RDWR);
- if (fd) {
+ if (fd >= 0) {
write(fd, stime, strlen(stime));
close(fd);
}