From 5e946dd853a4ebc2722ae023429ce5797de3d7a6 Mon Sep 17 00:00:00 2001 From: Eamon Walsh Date: Tue, 7 Nov 2006 13:50:19 -0500 Subject: [PATCH] Bug #8937: Extension setup functions not called on server resets --- mi/miinitext.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/mi/miinitext.c b/mi/miinitext.c index f61859578..cb3447372 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++) {