1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Remove unnecessary signal conditional.

This commit is contained in:
David Calavera 2013-07-29 10:28:41 -07:00
parent 594c818d85
commit c8ec36d1b9

View file

@ -1658,14 +1658,11 @@ func (cli *DockerCli) monitorTtySize(id string) error {
} }
cli.resizeTty(id) cli.resizeTty(id)
c := make(chan os.Signal, 1) sigchan := make(chan os.Signal, 1)
signal.Notify(c, syscall.SIGWINCH) signal.Notify(sigchan, syscall.SIGWINCH)
go func() { go func() {
for sig := range c { <-sigchan
if sig == syscall.SIGWINCH { cli.resizeTty(id)
cli.resizeTty(id)
}
}
}() }()
return nil return nil
} }