From: Rainer Schöpf Date: Thu, 29 Jul 2004 04:18:07 +0000 (+0000) Subject: afs-dont-shutdown-if-not-started-20040728 X-Git-Tag: BP-openafs-stable-1_4_x~67 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=f01257a2042a4c39186b4f417f71b6024beaf61e;p=packages%2Fo%2Fopenafs.git afs-dont-shutdown-if-not-started-20040728 FIXES 6001 if the module is loaded, but afsd hasn't been started, don't allow a shutdown. --- diff --git a/src/afs/afs_call.c b/src/afs/afs_call.c index ad5922d07..0c8e90d2d 100644 --- a/src/afs/afs_call.c +++ b/src/afs/afs_call.c @@ -1510,6 +1510,11 @@ afs_shutdown(void) extern struct osi_file *afs_cacheInodep; AFS_STATCNT(afs_shutdown); + if (afs_initState == 0) { + afs_warn("AFS not initialized - not shutting down\n"); + return; + } + if (afs_shuttingdown) return; afs_shuttingdown = 1;