mirror of
https://github.com/clearlinux/docker.git
synced 2026-08-22 22:56:17 +00:00
Make sure the process start in his own session and grabs the terminal
This commit is contained in:
+1
-1
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user