!813 [fix]logLimit fix

Merge pull request !813 from 杨浩/master
This commit is contained in:
openharmony_ci 2023-11-10 09:03:17 +00:00 committed by Gitee
commit a27006d175
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -102,12 +102,6 @@ int DoStartApp(struct AppSpawnContent_ *content, AppSpawnClient *client, char *l
return ret, "Failed to set KeepCapabilities");
}
if (content->setProcessName) {
ret = content->setProcessName(content, client, longProcName, longProcNameLen);
APPSPAWN_CHECK(ret == 0, NotifyResToParent(content, client, ret);
return ret, "Failed to set setProcessName");
}
if (content->setXpmRegion) {
ret = content->setXpmRegion(content);
APPSPAWN_CHECK(ret == 0, NotifyResToParent(content, client, ret);
@ -155,6 +149,12 @@ static int AppSpawnChild(void *arg)
AppSpawnClient *client = sandbox->client;
int ret = -1;
if (content->setProcessName) {
ret = content->setProcessName(content, client, content->longProcName, content->longProcNameLen);
APPSPAWN_CHECK(ret == 0, NotifyResToParent(content, client, ret);
return ret, "Failed to set setProcessName");
}
#ifdef OHOS_DEBUG
struct timespec tmStart = {0};
clock_gettime(CLOCK_REALTIME, &tmStart);