summaryrefslogtreecommitdiff
path: root/pkg/kubeutils
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2021-03-26 10:54:33 -0400
committerMatthew Heon <mheon@redhat.com>2021-03-29 11:16:51 -0400
commitb5573018073b22b923d88efc853f8f1c35ca8119 (patch)
tree412e5f86e430293a40a397c0c20555921782470e /pkg/kubeutils
parente7dc66d832d44eac11cb341f09844850e3e0224d (diff)
downloadpodman-b5573018073b22b923d88efc853f8f1c35ca8119.tar.gz
podman-b5573018073b22b923d88efc853f8f1c35ca8119.tar.bz2
podman-b5573018073b22b923d88efc853f8f1c35ca8119.zip
Remove resize race condition
Since podman-remote resize requests can come in at random times, this generates a real potential for race conditions. We should only be attempting to resize TTY on running containers, but the containers can go from running to stopped at any time, and returning an error to the caller is just causing noice. This change will basically ignore requests to resize terminals if the container is not running and return the caller to success. All other callers will still return failure. Fixes: https://github.com/containers/podman/issues/9831 Signed-off-by: Daniel J Walsh <dwalsh@redhat.com> <MH: Fixed cherry-pick conflicts> Signed-off-by: Matthew Heon <mheon@redhat.com>
Diffstat (limited to 'pkg/kubeutils')
0 files changed, 0 insertions, 0 deletions