mirror of
https://github.com/containers/podman.git
synced 2025-06-28 22:53:21 +08:00
Merge pull request #8175 from mheon/interactive_attach_chan
Ensure that attach ready channel does not block
This commit is contained in:
@ -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.
|
// attaching, and I really do not want to do that right now.
|
||||||
// Send a SIGWINCH after attach succeeds so that most programs will
|
// Send a SIGWINCH after attach succeeds so that most programs will
|
||||||
// redraw the screen for the new attach session.
|
// 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 {
|
if c.config.Spec.Process != nil && c.config.Spec.Process.Terminal {
|
||||||
go func() {
|
go func() {
|
||||||
<-attachRdy
|
<-attachRdy
|
||||||
|
Reference in New Issue
Block a user