Merge pull request #1288 from mrunalp/attach_close_ctl
container_attach: Ensure ctl file is closed
This commit is contained in:
commit
33e1057102
1 changed files with 1 additions and 0 deletions
|
@ -64,6 +64,7 @@ func (ss streamService) Attach(containerID string, inputStream io.Reader, output
|
|||
if err != nil {
|
||||
return fmt.Errorf("failed to open container ctl file: %v", err)
|
||||
}
|
||||
defer controlFile.Close()
|
||||
|
||||
kubecontainer.HandleResizing(resize, func(size remotecommand.TerminalSize) {
|
||||
logrus.Infof("Got a resize event: %+v", size)
|
||||
|
|
Loading…
Reference in a new issue