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

Upstream-commit: 7efde5eb8350ad709608e619b01af4108cc9d567
Component: engine
This commit is contained in:
Guillaume J. Charmes
2013-03-30 09:07:54 -07:00
parent 8e072eedc0
commit 4a407f8199
+2 -1
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
}