mirror of
https://gitee.com/openharmony/startup_appspawn
synced 2024-11-23 07:00:17 +00:00
!1699 clear reversed pid
Merge pull request !1699 from 杨浩/1112reverspid
This commit is contained in:
commit
6c9ad05a58
@ -109,6 +109,14 @@ static void StopAppSpawn(void)
|
||||
OH_ListInit(&appInfo->node);
|
||||
free(appInfo);
|
||||
}
|
||||
|
||||
AppSpawnContent *content = GetAppSpawnContent();
|
||||
if (content != NULL && content->reservedPid > 0) {
|
||||
int ret = kill(content->reservedPid, SIGKILL);
|
||||
APPSPAWN_CHECK_ONLY_LOG(ret == 0, "kill reserved pid %{public}d failed %{public}d %{public}d",
|
||||
content->reservedPid, ret, errno);
|
||||
content->reservedPid = 0;
|
||||
}
|
||||
TraversalSpawnedProcess(AppQueueDestroyProc, NULL);
|
||||
APPSPAWN_LOGI("StopAppSpawn ");
|
||||
#ifdef APPSPAWN_HISYSEVENT
|
||||
|
Loading…
Reference in New Issue
Block a user