зеркало из https://github.com/microsoft/docker.git
Keep the loop to allow resizing more than once.
This commit is contained in:
Родитель
c8ec36d1b9
Коммит
10e37198aa
|
@ -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
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче