From f01257a2042a4c39186b4f417f71b6024beaf61e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rainer=20Sch=C3=B6pf?= Date: Thu, 29 Jul 2004 04:18:07 +0000 Subject: [PATCH] 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. --- src/afs/afs_call.c | 5 +++++ 1 file changed, 5 insertions(+) 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; -- 2.39.5