afs: do not allow two shutdown sequences in parallel
[openafs.git] / src / afs / HPUX / osi_file.c
index 44ed271..a562fd4 100644 (file)
@@ -147,7 +147,7 @@ afs_osi_Read(struct osi_file *afile, int offset, void *aptr,
       * down. No point in crashing when we are already shutting down
       */
     if (!afile) {
-       if (!afs_shuttingdown)
+       if (afs_shuttingdown == AFS_RUNNING)
            osi_Panic("osi_Read called with null param");
        else
            return -EIO;