mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
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:
parent
5573c744e4
commit
1c1cf54b0a
2 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue