Browse Source

Merge pull request #877 from fsouza/fix-hijack

- Runtime: use in instead of os.Stdin in hijack
Guillaume J. Charmes 12 years ago
parent
commit
f37b158982
1 changed files with 1 additions and 1 deletions
  1. 1 1
      commands.go

+ 1 - 1
commands.go

@@ -1443,7 +1443,7 @@ func (cli *DockerCli) hijack(method, path string, setRawTerminal bool, in *os.Fi
 		return err
 	}
 
-	if !term.IsTerminal(os.Stdin.Fd()) {
+	if !term.IsTerminal(in.Fd()) {
 		if err := <-sendStdin; err != nil {
 			return err
 		}