Fix a scope issue preventing the close of slave stdin pty (#228)

This commit is contained in:
Guillaume J. Charmes 2013-03-30 09:07:54 -07:00
parent 5252ab697c
commit 7efde5eb83

View file

@ -183,7 +183,8 @@ func (container *Container) startPty() error {
// stdin
var stdinSlave io.ReadCloser
if container.Config.OpenStdin {
stdinMaster, stdinSlave, err := pty.Open()
var stdinMaster io.WriteCloser
stdinMaster, stdinSlave, err = pty.Open()
if err != nil {
return err
}