!8732 关闭fd时同时关闭sessioninfo中want的fd

Merge pull request !8732 from wangkailong/sfi
This commit is contained in:
openharmony_ci 2024-05-27 13:13:44 +00:00 committed by Gitee
commit 153ff79b5f
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -103,6 +103,7 @@ int UIAbilityLifecycleManager::StartUIAbility(AbilityRequest &abilityRequest, sp
uiAbilityRecord->SetIsNewWant(sessionInfo->isNewWant);
if (sessionInfo->isNewWant) {
uiAbilityRecord->SetWant(abilityRequest.want);
uiAbilityRecord->GetSessionInfo()->want.CloseAllFd();
}
} else {
uiAbilityRecord = CreateAbilityRecord(abilityRequest, sessionInfo);