mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-11 11:25:45 +00: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>
13 lines
277 B
Go
13 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
|
|
}
|