From 8fd9fad1ea4b25b8962d70133f476650ef0637b0 Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Thu, 11 Jan 2007 12:45:48 +1100 Subject: Error check messages sent to the kernel. And make sure that if we fail to export a filesystem in mountd, then we don't try to get a filehandle on it, or a deadlock might occur. --- support/nfs/cacheio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'support/nfs/cacheio.c') diff --git a/support/nfs/cacheio.c b/support/nfs/cacheio.c index 3e868d8..36473cf 100644 --- a/support/nfs/cacheio.c +++ b/support/nfs/cacheio.c @@ -109,10 +109,10 @@ void qword_printint(FILE *f, int num) fprintf(f, "%d ", num); } -void qword_eol(FILE *f) +int qword_eol(FILE *f) { fprintf(f,"\n"); - fflush(f); + return fflush(f); } -- cgit