Fix tty set issue for ioctl error

Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@crosbymichael.com> (github: crosbymichael)
This commit is contained in:
Michael Crosby
2014-01-17 17:42:21 -08:00
parent 5573c744e4
commit 1c1cf54b0a
2 changed files with 1 additions and 1 deletions
+1
View File
@@ -329,6 +329,7 @@ func (container *Container) startPty() error {
// stdin
if container.Config.OpenStdin {
container.process.Stdin = ptySlave
container.process.SysProcAttr.Setctty = true
go func() {
defer container.stdin.Close()
utils.Debugf("startPty: begin of stdin pipe")
-1
View File
@@ -81,7 +81,6 @@ func (d *driver) Start(c *execdriver.Process) error {
c.Args = append([]string{name}, arg...)
c.SysProcAttr = &syscall.SysProcAttr{Setsid: true}
c.SysProcAttr.Setctty = true
if err := c.Start(); err != nil {
return err