summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEamon Walsh <ewalsh@tycho.nsa.gov>2006-11-07 13:55:04 -0500
committerEamon Walsh <ewalsh@moss-uranus.epoch.ncsc.mil>2006-11-07 13:55:44 -0500
commitc9ff47033e81c1840dda9bb9568513cac0ba1fde (patch)
tree6417e29c895789e3e1b0067240966ae775a1846c
parente6778fee47aa24c8eb9b3305515acdc7dcdd8971 (diff)
Bug #8937: Extension setup functions not called on server resets
(cherry picked from 5e946dd853a4ebc2722ae023429ce5797de3d7a6 commit)
-rw-r--r--mi/miinitext.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/mi/miinitext.c b/mi/miinitext.c
index aafd014ae..8fd8c9ce1 100644
--- a/mi/miinitext.c
+++ b/mi/miinitext.c
@@ -754,6 +754,16 @@ InitExtensions(argc, argv)
/* Sort the extensions according the init dependencies. */
LoaderSortExtensions();
listInitialised = TRUE;
+ } else {
+ /* Call the setup functions on subsequent server resets as well */
+ for (i = 0; ExtensionModuleList[i].name != NULL; i++) {
+ ext = &ExtensionModuleList[i];
+ if (ext->setupFunc != NULL &&
+ (ext->disablePtr == NULL ||
+ (ext->disablePtr != NULL && !*ext->disablePtr))) {
+ (ext->setupFunc)();
+ }
+ }
}
for (i = 0; ExtensionModuleList[i].name != NULL; i++) {