Fix a scope issue preventing the close of slave stdin pty (#228)
Upstream-commit: 7efde5eb8350ad709608e619b01af4108cc9d567 Component: engine
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user