diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-10-28 14:53:34 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-28 14:53:34 -0400 |
commit | e04e567b96cafae30863c7782f7bc10c55bfb681 (patch) | |
tree | 57119e1d43d171d3f9bf2d27d6c5302d2169a5a4 | |
parent | 4d87306fbe06674b16f188fea187282f29c0dc58 (diff) | |
parent | 2cf443fd416f5da6465068e95dc366811d112242 (diff) | |
download | podman-e04e567b96cafae30863c7782f7bc10c55bfb681.tar.gz podman-e04e567b96cafae30863c7782f7bc10c55bfb681.tar.bz2 podman-e04e567b96cafae30863c7782f7bc10c55bfb681.zip |
Merge pull request #8175 from mheon/interactive_attach_chan
Ensure that attach ready channel does not block
-rw-r--r-- | libpod/container_api.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/container_api.go b/libpod/container_api.go index aef37dd59..a9808a30e 100644 --- a/libpod/container_api.go +++ b/libpod/container_api.go @@ -249,7 +249,7 @@ func (c *Container) Attach(streams *define.AttachStreams, keys string, resize <- // attaching, and I really do not want to do that right now. // Send a SIGWINCH after attach succeeds so that most programs will // redraw the screen for the new attach session. - attachRdy := make(chan bool) + attachRdy := make(chan bool, 1) if c.config.Spec.Process != nil && c.config.Spec.Process.Terminal { go func() { <-attachRdy |