aboutsummaryrefslogtreecommitdiffhomepage
path: root/sandbox/ops.go
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox/ops.go')
-rw-r--r--sandbox/ops.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/sandbox/ops.go b/sandbox/ops.go
index 5226c7ad..016b2657 100644
--- a/sandbox/ops.go
+++ b/sandbox/ops.go
@@ -205,7 +205,7 @@ func (d MountDevOp) apply(params *Params) error {
fmt.Sprintf("cannot mount devpts on %q:", devPtsPath))
}
- if params.Flags&FAllowTTY != 0 {
+ if params.RetainSession {
var buf [8]byte
if _, _, errno := Syscall(SYS_IOCTL, 1, TIOCGWINSZ, uintptr(unsafe.Pointer(&buf[0]))); errno == 0 {
consolePath := toSysroot(path.Join(v, "console"))