From 0a5d6c67914e04039fe29d44c82030f985ddc6a3 Mon Sep 17 00:00:00 2001 From: Mupceet Date: Tue, 7 Jun 2022 14:07:44 +0800 Subject: [PATCH] set defalt sn for qemu MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mupceet set defalt sn for qemu Signed-off-by: Mupceet space 重复释放 Signed-off-by: Mupceet space 重复释放 Signed-off-by: Mupceet --- device_info/etc/deviceinfoservice.cfg | 3 --- services/param/manager/param_manager.c | 5 ++++- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/device_info/etc/deviceinfoservice.cfg b/device_info/etc/deviceinfoservice.cfg index 50560956..5987027f 100755 --- a/device_info/etc/deviceinfoservice.cfg +++ b/device_info/etc/deviceinfoservice.cfg @@ -3,10 +3,7 @@ "name" : "services:deviceinfoservice", "cmds" : [ "chown shell system /data/init_agent/begetctrl.log", - "chown shell system /data/init_agent/device_infokits.log", "chmod 0666 /data/init_agent/begetctrl.log", - "chmod 0666 /data/init_agent/param.log", - "chmod 0666 /data/init_agent/device_infokits.log" ] } ], diff --git a/services/param/manager/param_manager.c b/services/param/manager/param_manager.c index bb020f4e..c3f3fdcf 100644 --- a/services/param/manager/param_manager.c +++ b/services/param/manager/param_manager.c @@ -163,7 +163,10 @@ int InitParamWorkSpace(int onlyRead) void CloseParamWorkSpace(void) { - PARAM_LOGI("CloseParamWorkSpace"); + PARAM_LOGI("CloseParamWorkSpace %p", &g_paramWorkSpace); + if (!PARAM_TEST_FLAG(g_paramWorkSpace.flags, WORKSPACE_FLAGS_INIT)) { + return; + } WORKSPACE_RW_LOCK(g_paramWorkSpace); if (g_paramWorkSpace.workSpaceHashHandle != NULL) { HashMapDestory(g_paramWorkSpace.workSpaceHashHandle); -- GitLab