Skip to content

Revert "Fix ToolTask hang when grandchild processes inherit pipe handles (#13351)"#13945

Open
JanProvaznik wants to merge 3 commits into
dotnet:vs18.7from
JanProvaznik:revert-13351-vs18.7
Open

Revert "Fix ToolTask hang when grandchild processes inherit pipe handles (#13351)"#13945
JanProvaznik wants to merge 3 commits into
dotnet:vs18.7from
JanProvaznik:revert-13351-vs18.7

Conversation

@JanProvaznik
Copy link
Copy Markdown
Member

Reverts #13351 on the vs18.7 branch.

This reverts commit 6c499a7 (Fix ToolTask hang when grandchild processes inherit pipe handles).

Copilot AI review requested due to automatic review settings June 4, 2026 11:58
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Reverts the vs18.7 backport of the ToolTask stdout/stderr pipe EOF handling change (#13351), restoring the prior ToolTask process-exit waiting behavior and removing the associated regression coverage and change-wave documentation entry.

Changes:

  • Remove the Wave18_6-gated ToolTask EOF-signaling + bounded EOF wait logic, restoring parameterless Process.WaitForExit().
  • Remove the unit tests added to cover the grandchild-pipe-handle hang scenario and output-capture behavior.
  • Update ChangeWaves documentation to remove the 18.6 entry for the reverted feature.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
src/Utilities/ToolTask.cs Reverts the process exit / output EOF handling changes and removes related fields/disposal.
src/Utilities.UnitTests/ToolTask_Tests.cs Removes regression tests that validated the reverted ToolTask behavior.
documentation/wiki/ChangeWaves.md Removes the Wave 18.6 documentation bullet for the reverted ToolTask fix.

Comment thread src/Utilities/ToolTask.cs
@JanProvaznik JanProvaznik requested a review from a team as a code owner June 4, 2026 12:22
@JanProvaznik JanProvaznik force-pushed the revert-13351-vs18.7 branch from 83488bc to c94810e Compare June 4, 2026 12:25
JanProvaznik and others added 2 commits June 4, 2026 14:29
…les (dotnet#13351)"

This reverts commit 6c499a7.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@JanProvaznik JanProvaznik force-pushed the revert-13351-vs18.7 branch from c94810e to a36f23a Compare June 4, 2026 12:30
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@JanProvaznik
Copy link
Copy Markdown
Member Author

merge on monday to get to the next QB window

value: ${{ parameters.TargetBranch }}
${{ else }}:
value: 'main'
value: 'rel/stable'
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't love having to change this but it's ok.

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.

4 participants