git://git.openafs.org
/
openafs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
macos: lock module against unload during shutdown
[openafs.git]
/
src
/
afs
/
DARWIN
/
osi_module.c
diff --git
a/src/afs/DARWIN/osi_module.c
b/src/afs/DARWIN/osi_module.c
index
020518b
..
f254ccf
100644
(file)
--- a/
src/afs/DARWIN/osi_module.c
+++ b/
src/afs/DARWIN/osi_module.c
@@
-115,6
+115,8
@@
afs_modunload(struct kmod_info * kmod_info, void *data)
{
if (afs_globalVFS)
return KERN_FAILURE;
+ if ((afs_initState != 0) || (afs_shuttingdown))
+ return KERN_FAILURE;
#ifdef AFS_DARWIN80_ENV
if (vfs_fsremove(afs_vfstable))
return KERN_FAILURE;