mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Keep the loop to allow resizing more than once.
This commit is contained in:
parent
c8ec36d1b9
commit
10e37198aa
1 changed files with 4 additions and 2 deletions
|
@ -1661,8 +1661,10 @@ func (cli *DockerCli) monitorTtySize(id string) error {
|
||||||
sigchan := make(chan os.Signal, 1)
|
sigchan := make(chan os.Signal, 1)
|
||||||
signal.Notify(sigchan, syscall.SIGWINCH)
|
signal.Notify(sigchan, syscall.SIGWINCH)
|
||||||
go func() {
|
go func() {
|
||||||
<-sigchan
|
for {
|
||||||
cli.resizeTty(id)
|
<-sigchan
|
||||||
|
cli.resizeTty(id)
|
||||||
|
}
|
||||||
}()
|
}()
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue