From 4a407f81992cdc9dad3c4d0e4b4aefc04d3078c7 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) Upstream-commit: 7efde5eb8350ad709608e619b01af4108cc9d567 Component: engine --- components/engine/container.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/engine/container.go b/components/engine/container.go index 7799ff8053..dc58d549a2 100644 --- a/components/engine/container.go +++ b/components/engine/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 }