1
0
mirror of https://github.com/docker/cli.git synced 2026-01-16 20:22:36 +03:00

Keep the loop to allow resizing more than once.

Upstream-commit: 10e37198aa14cb3192fd0bf29572a5dce58c348f
Component: engine
This commit is contained in:
David Calavera
2013-07-29 11:13:59 -07:00
parent 4b37d9ec34
commit 4dd9531b17

View File

@@ -1661,8 +1661,10 @@ func (cli *DockerCli) monitorTtySize(id string) error {
sigchan := make(chan os.Signal, 1)
signal.Notify(sigchan, syscall.SIGWINCH)
go func() {
<-sigchan
cli.resizeTty(id)
for {
<-sigchan
cli.resizeTty(id)
}
}()
return nil
}