summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-09-13 14:02:53 -0400
committerGitHub <noreply@github.com>2021-09-13 14:02:53 -0400
commitcc9491447479844ffdd27ba1c310d7e0a5a59a79 (patch)
tree229d9cdd5a75ae475084d8c480bf36493977e708 /pkg
parent73422de08d85d790397fe821f5fc6d5a05e30643 (diff)
parentc23f81fab6183892a3565e6b2a818ad9db22421c (diff)
downloadpodman-cc9491447479844ffdd27ba1c310d7e0a5a59a79.tar.gz
podman-cc9491447479844ffdd27ba1c310d7e0a5a59a79.tar.bz2
podman-cc9491447479844ffdd27ba1c310d7e0a5a59a79.zip
Merge pull request #11550 from atykhyy/patch-2
Fix #11444: remote breaks with stdout redirection
Diffstat (limited to 'pkg')
-rw-r--r--pkg/terminal/console_windows.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/terminal/console_windows.go b/pkg/terminal/console_windows.go
index 08e66cb3a..9a636d681 100644
--- a/pkg/terminal/console_windows.go
+++ b/pkg/terminal/console_windows.go
@@ -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