Remove unnecessary signal conditional.

Upstream-commit: c8ec36d1b9bfbe1e22acd0124409ecb5a109d406
Component: engine
This commit is contained in:
David Calavera
2013-07-29 10:28:41 -07:00
parent e53564ccbf
commit 4b37d9ec34
+4 -7
View File
@@ -1658,14 +1658,11 @@ func (cli *DockerCli) monitorTtySize(id string) error {
}
cli.resizeTty(id)
c := make(chan os.Signal, 1)
signal.Notify(c, syscall.SIGWINCH)
sigchan := make(chan os.Signal, 1)
signal.Notify(sigchan, syscall.SIGWINCH)
go func() {
for sig := range c {
if sig == syscall.SIGWINCH {
cli.resizeTty(id)
}
}
<-sigchan
cli.resizeTty(id)
}()
return nil
}