From db76080d579e290c17dba2f7329cb3b15858d5bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A8=8A=E6=99=AF=E4=B9=90?= Date: Fri, 28 Mar 2025 10:14:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A2=9E=E5=8A=A0=E6=89=93=E7=82=B9?= =?UTF-8?q?=E6=A0=A1=E9=AA=8C=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 樊景乐 --- modules/sysevent/event_reporter.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/sysevent/event_reporter.cpp b/modules/sysevent/event_reporter.cpp index 2bf0cb6b..c70ace7a 100644 --- a/modules/sysevent/event_reporter.cpp +++ b/modules/sysevent/event_reporter.cpp @@ -45,8 +45,11 @@ void ProcessMgrRemoveApp(const char* processName, int pid, int uid, int status) } if (signal != 0) { - HiSysEventWrite(HiSysEvent::Domain::APPSPAWN, KEY_PROCESS_EXIT, HiSysEvent::EventType::BEHAVIOR, + int ret = HiSysEventWrite(HiSysEvent::Domain::APPSPAWN, KEY_PROCESS_EXIT, HiSysEvent::EventType::BEHAVIOR, KEY_NAME, pname, KEY_PID, pid, KEY_UID, uid, KEY_STATUS, status); + if (ret != 0) { + APPSPAWN_LOGE("ProcessMgrRemoveApp error, ret: %{public}d", ret); + } } } } // namespace system -- Gitee