mirror of
https://gitee.com/openharmony/startup_appspawn
synced 2024-11-27 01:00:38 +00:00
commit
a27006d175
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user