mirror of
https://github.com/containers/podman.git
synced 2025-06-01 17:17:47 +08:00

StartAndAttach() runs start() in a goroutine, which can allow it to fire after the caller returns - and thus, after the defer to unlock the container lock has fired. The start() call _must_ occur while the container is locked, or else state inconsistencies may occur. Fixes #3114 Signed-off-by: Matthew Heon <matthew.heon@pm.me>
14 lines
277 B
Go
14 lines
277 B
Go
//+build !linux
|
|
|
|
package libpod
|
|
|
|
import (
|
|
"sync"
|
|
|
|
"k8s.io/client-go/tools/remotecommand"
|
|
)
|
|
|
|
func (c *Container) attach(streams *AttachStreams, keys string, resize <-chan remotecommand.TerminalSize, startContainer bool, wg *sync.WaitGroup) error {
|
|
return ErrNotImplemented
|
|
}
|