Skip to content

Commit

Permalink
Merge pull request #11550 from atykhyy/patch-2
Browse files Browse the repository at this point in the history
Fix #11444: remote breaks with stdout redirection
  • Loading branch information
openshift-merge-robot authored Sep 13, 2021
2 parents 73422de + c23f81f commit cc94914
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/terminal/console_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func setConsoleMode(handle windows.Handle, flags uint32) error {
var mode uint32
err := windows.GetConsoleMode(handle, &mode)
if err != nil {
return err
return nil // not a terminal
}
if err := windows.SetConsoleMode(handle, mode|flags); err != nil {
// In similar code, it is not considered an error if we cannot set the
Expand Down

0 comments on commit cc94914

Please sign in to comment.