Remove unused parameter in NewTtyConsole
It's introduced in
68ba5f0b69
(Execdriver implementation on new libcontainer API)
But I don't see reson why we need it.
Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
This commit is contained in:
parent
c986f85f73
commit
af3059855c
|
@ -361,7 +361,7 @@ type TtyConsole struct {
|
|||
console libcontainer.Console
|
||||
}
|
||||
|
||||
func NewTtyConsole(console libcontainer.Console, pipes *execdriver.Pipes, rootuid int) (*TtyConsole, error) {
|
||||
func NewTtyConsole(console libcontainer.Console, pipes *execdriver.Pipes) (*TtyConsole, error) {
|
||||
tty := &TtyConsole{
|
||||
console: console,
|
||||
}
|
||||
|
@ -417,7 +417,7 @@ func setupPipes(container *configs.Config, processConfig *execdriver.ProcessConf
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
term, err = NewTtyConsole(cons, pipes, rootuid)
|
||||
term, err = NewTtyConsole(cons, pipes)
|
||||
} else {
|
||||
p.Stdout = pipes.Stdout
|
||||
p.Stderr = pipes.Stderr
|
||||
|
|
Loading…
Reference in New Issue