From 30af659b92c818e43b42206b54d3ad44ad8bdb4b Mon Sep 17 00:00:00 2001 From: Mrunal Patel Date: Tue, 27 Feb 2018 15:57:03 -0800 Subject: [PATCH] execsync: Set terminal to true when we pass -t to conmon We may consider setting it to true all the time but this should match our previous behavior before we started using process json for exec. Signed-off-by: Mrunal Patel --- oci/oci.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oci/oci.go b/oci/oci.go index 69269f2c..26b4ec26 100644 --- a/oci/oci.go +++ b/oci/oci.go @@ -441,7 +441,7 @@ func (r *Runtime) ExecSync(c *Container, command []string, timeout int64) (resp args = append(args, "-l", logPath) args = append(args, "--socket-dir-path", ContainerAttachSocketDir) - processFile, err := PrepareProcessExec(c, command, false) + processFile, err := PrepareProcessExec(c, command, c.terminal) if err != nil { return nil, ExecSyncError{ ExitCode: -1,