From 4b31ee81c3a3dca58d9169f404d6c4da87a9a5c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=B5=A9?= Date: Sat, 26 Jul 2025 16:20:23 +0800 Subject: [PATCH] fix coldrun MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 杨浩 --- modules/asan/asan_detector.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/modules/asan/asan_detector.c b/modules/asan/asan_detector.c index 52be5a68..3bbecf98 100644 --- a/modules/asan/asan_detector.c +++ b/modules/asan/asan_detector.c @@ -141,12 +141,14 @@ static int AsanSpawnGetSpawningFlag(AppSpawnMgr *content, AppSpawningCtx *proper if (property->forkCtx.coldRunPath) { free(property->forkCtx.coldRunPath); } -#ifndef CJAPP_SPAWN - property->forkCtx.coldRunPath = strdup("/system/asan/bin/appspawn"); +#ifdef CJAPP_SPAWN + property->forkCtx.coldRunPath = strdup("/system/asan/bin/cjappspawn"); #elif NATIVE_SPAWN property->forkCtx.coldRunPath = strdup("/system/asan/bin/nativespawn"); +#elif NWEB_SPAWN + property->forkCtx.coldRunPath = strdup("/system/asan/bin/nwebspawn"); #else - property->forkCtx.coldRunPath = strdup("/system/asan/bin/cjappspawn"); + property->forkCtx.coldRunPath = strdup("/system/asan/bin/appspawn"); #endif if (property->forkCtx.coldRunPath == NULL) { APPSPAWN_LOGE("Failed to set asan exec path %{public}s", GetProcessName(property)); -- Gitee