浏览代码

Keep the loop to allow resizing more than once.

David Calavera 12 年之前
父节点
当前提交
10e37198aa
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 4 2
      commands.go

+ 4 - 2
commands.go

@@ -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
-		cli.resizeTty(id)
+		for {
+			<-sigchan
+			cli.resizeTty(id)
+		}
 	}()
 	}()
 	return nil
 	return nil
 }
 }