mirror of
https://github.com/containers/podman.git
synced 2025-07-30 20:02:37 +08:00

When a container is attached upon start, the WaitGroup counter may never be decremented if an error is raised before start, causing the caller to hang. Synchronize with the start & attach goroutine using a channel, to be able to detect failures before start. Signed-off-by: Marco Vedovati <mvedovati@suse.com>
13 lines
320 B
Go
13 lines
320 B
Go
//+build !linux
|
|
|
|
package libpod
|
|
|
|
import (
|
|
"github.com/containers/libpod/libpod/define"
|
|
"k8s.io/client-go/tools/remotecommand"
|
|
)
|
|
|
|
func (c *Container) attach(streams *AttachStreams, keys string, resize <-chan remotecommand.TerminalSize, startContainer bool, started chan bool) error {
|
|
return define.ErrNotImplemented
|
|
}
|