]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE12-warn-of-but-allow-bogus-shutdown-20020608
authorDerrick Brashear <shadow@dementia.org>
Sat, 8 Jun 2002 21:29:49 +0000 (21:29 +0000)
committerDerrick Brashear <shadow@dementia.org>
Sat, 8 Jun 2002 21:29:49 +0000 (21:29 +0000)
despite the danger of it, allow shutdown without umount, to prevent hanging

src/afs/afs_call.c

index e7ff6ccfaf9a586fd63f32241f57c3734011be0a..0770043c7e0170b385e3ebf77a59871c500be21f 100644 (file)
@@ -544,11 +544,10 @@ long parm, parm2, parm3, parm4, parm5, parm6;
 #endif
        afs_cold_shutdown = 0;
        if (parm == 1) afs_cold_shutdown = 1;
-       if (afs_globalVFS != 0) {
-           afs_warn("AFS isn't unmounted yet! Call aborted\n");
-           code = EACCES;
-       } else
-           afs_shutdown();
+       if (afs_globalVFS != 0) 
+           afs_warn("AFS isn't unmounted yet!\n");
+
+       afs_shutdown();
     }
 
 #if    ! defined(AFS_HPUX90_ENV) || defined(AFS_HPUX100_ENV)