diff options
author | Matthew Heon <matthew.heon@gmail.com> | 2018-05-07 14:28:35 -0400 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-05-08 13:43:59 +0000 |
commit | bb2d5759d444a15952955564596aa0ba2201b5c6 (patch) | |
tree | 2399a8ee0ecd50a89793f6c38088d5de20f2ec7e /cmd/podman/utils.go | |
parent | faa8c3ebc570bf317953879f6a57bdc792219387 (diff) | |
download | podman-bb2d5759d444a15952955564596aa0ba2201b5c6.tar.gz podman-bb2d5759d444a15952955564596aa0ba2201b5c6.tar.bz2 podman-bb2d5759d444a15952955564596aa0ba2201b5c6.zip |
Remove extra close from attach resize channel
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Closes: #733
Approved by: umohnani8
Diffstat (limited to 'cmd/podman/utils.go')
-rw-r--r-- | cmd/podman/utils.go | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/cmd/podman/utils.go b/cmd/podman/utils.go index 254b3d547..48b30d274 100644 --- a/cmd/podman/utils.go +++ b/cmd/podman/utils.go @@ -17,7 +17,6 @@ import ( // Attach to a container func attachCtr(ctr *libpod.Container, stdout, stderr, stdin *os.File, detachKeys string, sigProxy bool) error { resize := make(chan remotecommand.TerminalSize) - defer close(resize) haveTerminal := terminal.IsTerminal(int(os.Stdin.Fd())) @@ -69,7 +68,6 @@ func attachCtr(ctr *libpod.Container, stdout, stderr, stdin *os.File, detachKeys // Start and attach to a container func startAttachCtr(ctr *libpod.Container, stdout, stderr, stdin *os.File, detachKeys string, sigProxy bool) error { resize := make(chan remotecommand.TerminalSize) - defer close(resize) haveTerminal := terminal.IsTerminal(int(os.Stdin.Fd())) |