From 33a5fe3bd4cb0bd31b01da89c8c4c3321701e7a1 Mon Sep 17 00:00:00 2001 From: "Guillaume J. Charmes" Date: Thu, 4 Apr 2013 11:24:22 -0700 Subject: [PATCH] Make sure the process start in his own session and grabs the terminal --- container.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/container.go b/container.go index 2fa46ada2..2d20ce510 100644 --- a/container.go +++ b/container.go @@ -202,7 +202,7 @@ func (container *Container) startPty() error { container.cmd.Stdin = stdoutSlave // FIXME: The following appears to be broken. // "cannot set terminal process group (-1): Inappropriate ioctl for device" - // container.cmd.SysProcAttr = &syscall.SysProcAttr{Setctty: true, Setsid: true} + container.cmd.SysProcAttr = &syscall.SysProcAttr{Setctty: true, Setsid: true} go func() { defer container.stdin.Close() Debugf("[startPty] Begin of stdin pipe")