diff --git a/interfaces/innerkits/modulemgr/modulemgr.c b/interfaces/innerkits/modulemgr/modulemgr.c index ad86a3b908fc1d52f0b9fc031a083b99bf8ffd00..87bdfe1a56e3f33ac81a7b6f71d498992a262613 100755 --- a/interfaces/innerkits/modulemgr/modulemgr.c +++ b/interfaces/innerkits/modulemgr/modulemgr.c @@ -22,7 +22,7 @@ #include #include -#include "init_log.h" +#include "beget_ext.h" #include "list.h" #include "securec.h" #include "modulemgr.h" @@ -122,12 +122,12 @@ static void *moduleInstall(MODULE_ITEM *module, int argc, const char *argv[]) } else { snprintf_s(path, sizeof(path), sizeof(path) - 1, "/system/" MODULE_LIB_NAME "/%s/%s" MODULE_SUFFIX_D, module->moduleMgr->name, module->name); } - INIT_LOGV("moduleInstall path %s", path); + BEGET_LOGV("moduleInstall path %s", path); currentInstallArgs = &(module->moduleMgr->installArgs); handle = dlopen(path, RTLD_LAZY | RTLD_GLOBAL); currentInstallArgs = NULL; if (handle == NULL) { - INIT_LOGE("moduleInstall path %s fail %d", path, errno); + BEGET_LOGE("moduleInstall path %s fail %d", path, errno); } return handle; } diff --git a/services/init/standard/init.c b/services/init/standard/init.c index 589d17e3f9263fcc206ab1d9d26dd58ce18d4c1a..8612908965032ca588b0ea77b2f1a43194c4eee7 100755 --- a/services/init/standard/init.c +++ b/services/init/standard/init.c @@ -253,6 +253,8 @@ static void BootStateChange(const char *content) } if (strcmp("post-init", content) == 0) { StartAllServices(START_MODE_NARMAL); + // Destroy all hooks + HookMgrDestroy(NULL); return; } }