Browse code

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

Guillaume J. Charmes authored on 2013/03/31 01:07:54
Showing 1 changed files
... ...
@@ -183,7 +183,8 @@ func (container *Container) startPty() error {
183 183
 	// stdin
184 184
 	var stdinSlave io.ReadCloser
185 185
 	if container.Config.OpenStdin {
186
-		stdinMaster, stdinSlave, err := pty.Open()
186
+		var stdinMaster io.WriteCloser
187
+		stdinMaster, stdinSlave, err = pty.Open()
187 188
 		if err != nil {
188 189
 			return err
189 190
 		}