Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix windows console runner update crash #1670

Merged
merged 2 commits into from
Feb 8, 2022

Conversation

fhammerl
Copy link
Contributor

@fhammerl fhammerl commented Feb 8, 2022

Fixes #1669

By not killing the process on cancel, the handle to the console is lost and subsequent attempts to write to the terminal will throw an exception (leading to the crash + logs in the issue).

If the process is killed on its cancellation, the terminal instead works as intended.

See the relevant ProcessInvoker behaviour here and here for details.

Ferenc Hammerl added 2 commits February 8, 2022 10:36
So we can print to the console in Runner.Listener once again
@fhammerl fhammerl requested a review from a team as a code owner February 8, 2022 12:47
@fhammerl fhammerl merged commit 9240a1c into main Feb 8, 2022
@fhammerl fhammerl deleted the fhammerl/fix-win-update-trimmed branch February 8, 2022 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Windows] Runner update occasionally fails if runner was launched directly from the console
2 participants