Skip to content

[2.0-stable] Cherry-pick: Fix AppInstance process handle validation (#6733) - #6735

Open
Scott Jones (Scottj1s) wants to merge 5 commits into
release/2.0-stablefrom
users/sjones/getinstances-process-handle-2.0
Open

[2.0-stable] Cherry-pick: Fix AppInstance process handle validation (#6733)#6735
Scott Jones (Scottj1s) wants to merge 5 commits into
release/2.0-stablefrom
users/sjones/getinstances-process-handle-2.0

Conversation

@Scottj1s

@Scottj1s Scott Jones (Scottj1s) commented Sep 1, 2026

Copy link
Copy Markdown
Member

Description

Cherry-picks #6733 to release/2.0-stable.

Non-current AppInstance entries now open the process once with SYNCHRONIZE, discard stale entries when that open fails, and transfer the validated handle into AppInstance for wait registration.

The new behavior is guarded by runtime compatibility change AppLifecycle_GetInstancesProcessHandleFix (63876312). Disabling the change preserves the previous process-query and wait-registration behavior.

Validation

The original source commits are patch-equivalent to the reviewed commits in #6733. The additional normalization commit corrects a line-ending artifact introduced while cherry-picking into the CRLF servicing source file.

A microsoft employee must use /azp run to validate using the pipelines below.

WARNING:
Comments made by azure-pipelines bot maybe inaccurate.
Please see pipeline link to verify that the build is being ran.

For status checks on the main branch, please use TransportPackage-Foundation-PR
(https://microsoft.visualstudio.com/ProjectReunion/_build?definitionId=81063&_a=summary)
and run the build against your PR branch with the default parameters.

Open non-current processes with SYNCHRONIZE once and transfer the
validated handle into AppInstance before registering the termination wait.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: adb671f1-8cb1-4291-b25e-983d17a5bb1a
@Scottj1s
Scott Jones (Scottj1s) requested a review from a team September 1, 2026 21:49
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@Scottj1s

Copy link
Copy Markdown
Member Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
2 pipeline(s) were filtered out due to trigger conditions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant