Pass tty master to Exec

Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@crosbymichael.com> (github: crosbymichael)
Upstream-commit: 332755b99d345a8ffbf4fb636ca8fed604a233c0
Component: engine
This commit is contained in:
Michael Crosby
2014-02-21 16:40:32 -08:00
parent e38028e81a
commit dd4492ebc4
2 changed files with 2 additions and 3 deletions

View File

@ -19,9 +19,8 @@ import (
// Exec performes setup outside of a namespace so that a container can be
// executed. Exec is a high level function for working with container namespaces.
func Exec(container *libcontainer.Container, stdin io.Reader, stdout, stderr io.Writer, logFile string, args []string) (int, error) {
func Exec(container *libcontainer.Container, stdin io.Reader, stdout, stderr io.Writer, master *os.File, logFile string, args []string) (int, error) {
var (
master *os.File
console string
err error

View File

@ -58,7 +58,7 @@ func main() {
exitCode, err = nsinit.ExecIn(container, nspid, flag.Args()[1:])
} else {
exitCode, err = nsinit.Exec(container,
os.Stdin, os.Stdout, os.Stderr,
os.Stdin, os.Stdout, os.Stderr, nil,
logFile, flag.Args()[1:])
}
if err != nil {