From 7efde5eb8350ad709608e619b01af4108cc9d567 Mon Sep 17 00:00:00 2001 From: "Guillaume J. Charmes" Date: Sat, 30 Mar 2013 09:07:54 -0700 Subject: [PATCH] Fix a scope issue preventing the close of slave stdin pty (#228) --- container.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/container.go b/container.go index 7799ff805..dc58d549a 100644 --- a/container.go +++ b/container.go @@ -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 }