Fix a scope issue preventing the close of slave stdin pty (#228)
This commit is contained in:
parent
5252ab697c
commit
7efde5eb83
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue