Skip to content

Fix the total teardown order for ConhostConnection#1340

Merged
1 commit merged intomasterfrom
dev/duhowett/rundownII
Jun 20, 2019
Merged

Fix the total teardown order for ConhostConnection#1340
1 commit merged intomasterfrom
dev/duhowett/rundownII

Conversation

@DHowett
Copy link
Member

@DHowett DHowett commented Jun 20, 2019

The signal pipe must be terminated first. It is this very termination
that signals to the connected console host that it should begin exiting
in an orderly manner.

We're introducing an indefinite wait (yes, I know: it's not great) for
conhost to exit. This matches ClosePseudoConsole in
kernelbase/winconpty.

If it does not exit in an orderly manner, powershell (and perhaps other
.NET CLI applications) may crash immediately after conhost exits.

Fixes #1338.

The signal pipe must be terminated first. It is this very termination
that signals to the connected console host that it should begin exiting
in an orderly manner.

We're introducing an indefinite wait (yes, I know: it's not great) for
conhost to exit. **This matches ClosePseudoConsole in
kernelbase/winconpty.**

If it does not exit in an orderly manner, powershell (and perhaps other
.NET CLI applications) may crash immediately after conhost exits.

Fixes #1338.
@zadjii-msft zadjii-msft added the AutoMerge Marked for automatic merge by the bot when requirements are met label Jun 20, 2019
@ghost
Copy link

ghost commented Jun 20, 2019

Hello @zadjii-msft!

Because this pull request has the AutoMerge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

Do note that I've been instructed to only help merge pull requests of this repository that have been opened for at least 8 hours, a condition that will be fulfilled in about 1 hour 22 minutes. No worries though, I will be back when the time is right! 😉

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

@ghost ghost merged commit 1ac7e65 into master Jun 20, 2019
@ghost ghost deleted the dev/duhowett/rundownII branch June 20, 2019 17:17
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AutoMerge Marked for automatic merge by the bot when requirements are met

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[~100% IMPACT] When you close a powershell tab, powershell *crashes*

4 participants