summaryrefslogtreecommitdiff
path: root/cmd/podman
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2018-06-28 18:53:09 +0200
committerGiuseppe Scrivano <gscrivan@redhat.com>2018-06-28 18:53:09 +0200
commit54e9a48c546e795dd7f53216968df8b6bb67bd5b (patch)
treeae7cb3f83a67eb3e9eb053f3ec1e762d90f84045 /cmd/podman
parentc82166afabd63f6271990be89ffa6609d3dc6712 (diff)
downloadpodman-54e9a48c546e795dd7f53216968df8b6bb67bd5b.tar.gz
podman-54e9a48c546e795dd7f53216968df8b6bb67bd5b.tar.bz2
podman-54e9a48c546e795dd7f53216968df8b6bb67bd5b.zip
utils: fix endless write of resize event
issue introduced with c82166afabd63f6271990be89ffa6609d3dc6712 Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'cmd/podman')
-rw-r--r--cmd/podman/utils.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/podman/utils.go b/cmd/podman/utils.go
index 25bb36b60..72bdac256 100644
--- a/cmd/podman/utils.go
+++ b/cmd/podman/utils.go
@@ -182,6 +182,7 @@ func resizeTty(ctx context.Context, resize chan remotecommand.TerminalSize) {
case <-sigchan:
resizeEvent = getResize()
case resize <- *resizeEvent:
+ resizeEvent = nil
}
}
}