提交 930dabc9 编写于 作者: M Mupceet

fix bug for bootchart

Signed-off-by: NMupceet <laiguizhong@huawei.com>
上级 9df14881
......@@ -22,7 +22,7 @@
#include <dirent.h>
#include <linux/limits.h>
#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;
}
......
......@@ -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;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册