mirror of
https://github.com/containers/podman.git
synced 2025-08-06 03:19:52 +08:00
make remote resize channel buffered
when doing any sort of attach to a container, a sigwinch is sent followed by a resize event. this is fine for the local client but when doing things over the varlink, the first sigwinch is wiped out by the immediate resize event and is therefore lost. by making the channel buffered, both events are processed after the varlink connection is established. Signed-off-by: baude <bbaude@redhat.com>
This commit is contained in:
@ -561,7 +561,7 @@ func (r *LocalRuntime) attach(ctx context.Context, stdin, stdout *os.File, cid s
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
resize := make(chan remotecommand.TerminalSize)
|
||||
resize := make(chan remotecommand.TerminalSize, 5)
|
||||
haveTerminal := terminal.IsTerminal(int(os.Stdin.Fd()))
|
||||
|
||||
// Check if we are attached to a terminal. If we are, generate resize
|
||||
|
Reference in New Issue
Block a user