소스 검색

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)
 	signal.Notify(sigchan, syscall.SIGWINCH)
 	go func() {
-		<-sigchan
-		cli.resizeTty(id)
+		for {
+			<-sigchan
+			cli.resizeTty(id)
+		}
 	}()
 	return nil
 }