diff options
author | gVisor bot <gvisor-bot@google.com> | 2019-06-26 18:35:53 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2019-06-26 18:35:53 +0000 |
commit | 84ea7eac5bd610c7d5dd05b54dcb997a38cb39ee (patch) | |
tree | 5c48a9f37c7de3d0ce88b1b34df83ac1bd2cecec /runsc/sandbox | |
parent | 563b022ea4a0de483ea24d55513558b7c21d1d5e (diff) | |
parent | 67e2f227aac49129936efc640a6c47a0978b187d (diff) |
Merge 67e2f227 (automated)
Diffstat (limited to 'runsc/sandbox')
-rw-r--r-- | runsc/sandbox/sandbox.go | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/runsc/sandbox/sandbox.go b/runsc/sandbox/sandbox.go index 1591052cd..6bebf0737 100644 --- a/runsc/sandbox/sandbox.go +++ b/runsc/sandbox/sandbox.go @@ -438,15 +438,10 @@ func (s *Sandbox) createSandboxProcess(conf *boot.Config, args *Args, startSyncF // Set the TTY as a controlling TTY on the sandbox process. cmd.SysProcAttr.Setctty = true - cmd.SysProcAttr.Ctty = int(tty.Fd()) - // TODO(b/133868570): Delete this check once Go 1.12 is no - // longer supported. - if console.CttyFdIsPostShuffle { - // In go1.12 and before, the Ctty FD must be the FD in - // the child process's FD table, which will be "nextFD" - // in this case. - cmd.SysProcAttr.Ctty = nextFD - } + // The Ctty FD must be the FD in the child process's FD table, + // which will be nextFD in this case. + // See https://github.com/golang/go/issues/29458. + cmd.SysProcAttr.Ctty = nextFD // Pass the tty as all stdio fds to sandbox. for i := 0; i < 3; i++ { |