aboutsummaryrefslogtreecommitdiff
path: root/libpod/container_attach.go
diff options
context:
space:
mode:
authorMatthew Heon <mheon@redhat.com>2018-01-26 03:08:41 -0500
committerAtomic Bot <atomic-devel@projectatomic.io>2018-01-27 06:26:20 +0000
commit36e6009f00ecf9a78b7c8d747bb551bbc6da3d85 (patch)
tree13bbebe09cdbbacd49b1d0f6db7ba3bf89ba64e4 /libpod/container_attach.go
parente47fcdf170005df50f80126ef8c0c1cfed996f8b (diff)
downloadpodman-36e6009f00ecf9a78b7c8d747bb551bbc6da3d85.tar.gz
podman-36e6009f00ecf9a78b7c8d747bb551bbc6da3d85.tar.bz2
podman-36e6009f00ecf9a78b7c8d747bb551bbc6da3d85.zip
Close attach control file
From CRI-O #1288 Signed-off-by: Matthew Heon <mheon@redhat.com> Closes: #263 Approved by: umohnani8
Diffstat (limited to 'libpod/container_attach.go')
-rw-r--r--libpod/container_attach.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/libpod/container_attach.go b/libpod/container_attach.go
index 66d5ec236..46b306133 100644
--- a/libpod/container_attach.go
+++ b/libpod/container_attach.go
@@ -61,6 +61,7 @@ func (c *Container) attachContainerSocket(resize <-chan remotecommand.TerminalSi
if err != nil {
return errors.Wrapf(err, "failed to open container ctl file: %v")
}
+ defer controlFile.Close()
kubecontainer.HandleResizing(resize, func(size remotecommand.TerminalSize) {
logrus.Debugf("Received a resize event: %+v", size)