Skip to content

Commit cb748db

Browse files
Merge pull request #3007 from jterry75/fix_tty_windows
Stop sending stderr with TTY on Windows
2 parents 521a44b + 0089567 commit cb748db

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cmd/ctr/commands/tasks/tasks_windows.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ func NewTask(ctx gocontext.Context, client *containerd.Client, container contain
6464
if nullIO {
6565
return nil, errors.New("tty and null-io cannot be used together")
6666
}
67-
ioCreator = cio.NewCreator(append([]cio.Opt{cio.WithStreams(con, con, con), cio.WithTerminal}, ioOpts...)...)
67+
ioCreator = cio.NewCreator(append([]cio.Opt{cio.WithStreams(con, con, nil), cio.WithTerminal}, ioOpts...)...)
6868
} else if nullIO {
6969
ioCreator = cio.NullIO
7070
} else {

0 commit comments

Comments
 (0)