summaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-10-28 14:53:34 -0400
committerGitHub <noreply@github.com>2020-10-28 14:53:34 -0400
commite04e567b96cafae30863c7782f7bc10c55bfb681 (patch)
tree57119e1d43d171d3f9bf2d27d6c5302d2169a5a4 /libpod
parent4d87306fbe06674b16f188fea187282f29c0dc58 (diff)
parent2cf443fd416f5da6465068e95dc366811d112242 (diff)
downloadpodman-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
Diffstat (limited to 'libpod')
-rw-r--r--libpod/container_api.go2
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