Browse Source

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

Guillaume J. Charmes 12 years ago
parent
commit
7efde5eb83
1 changed files with 2 additions and 1 deletions
  1. 2 1
      container.go

+ 2 - 1
container.go

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