mirror of
https://github.com/containers/podman.git
synced 2025-07-17 17:34:36 +08:00
Close attach control file
From CRI-O #1288 Signed-off-by: Matthew Heon <mheon@redhat.com> Closes: #263 Approved by: umohnani8
This commit is contained in:
@ -61,6 +61,7 @@ func (c *Container) attachContainerSocket(resize <-chan remotecommand.TerminalSi
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return errors.Wrapf(err, "failed to open container ctl file: %v")
|
return errors.Wrapf(err, "failed to open container ctl file: %v")
|
||||||
}
|
}
|
||||||
|
defer controlFile.Close()
|
||||||
|
|
||||||
kubecontainer.HandleResizing(resize, func(size remotecommand.TerminalSize) {
|
kubecontainer.HandleResizing(resize, func(size remotecommand.TerminalSize) {
|
||||||
logrus.Debugf("Received a resize event: %+v", size)
|
logrus.Debugf("Received a resize event: %+v", size)
|
||||||
|
Reference in New Issue
Block a user