mirror of
https://github.com/containers/podman.git
synced 2025-06-26 04:46:57 +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.
|
||||
// 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
|
||||
|
Reference in New Issue
Block a user