Skip to content

Conversation

@muesli
Copy link
Contributor

@muesli muesli commented Oct 21, 2022

When resetting the Windows console modes, we must not abort on the first encountered error, otherwise we might leave the console in an unexpected state.

This is easily reproducible by calling SetRaw while stdout is redirected: Reset will abort restoring console modes after failing to reset stdout, which leaves stderr in its raw state.

…nsole

When resetting the Windows console modes, we must not abort on the
first encountered error, otherwise we might leave the console in an
unexpected state.

This is easily reproducible by calling SetRaw while stdout is
redirected: Reset will abort restoring console modes after failing
to reset stdout, which leaves stderr in its raw state.

Signed-off-by: Christian Muehlhaeuser <muesli@gmail.com>
@kzys
Copy link
Member

kzys commented Mar 7, 2023

@kevpar @dcantah PTAL

@kzys kzys merged commit 56fb9de into containerd:main Mar 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants