diff --git a/tty.go b/tty.go index 86fde2c06..015f00ccb 100644 --- a/tty.go +++ b/tty.go @@ -99,7 +99,7 @@ func (t *tty) initHostConsole() error { return nil } -func (t *tty) recvtty(process *libcontainer.Process, socket *os.File) (Err error) { +func (t *tty) recvtty(socket *os.File) (Err error) { f, err := utils.RecvFd(socket) if err != nil { return err diff --git a/utils_linux.go b/utils_linux.go index 939e01f8d..43c8dd388 100644 --- a/utils_linux.go +++ b/utils_linux.go @@ -139,7 +139,7 @@ func setupIO(process *libcontainer.Process, rootuid, rootgid int, createTTY, det t.postStart = append(t.postStart, parent, child) t.consoleC = make(chan error, 1) go func() { - t.consoleC <- t.recvtty(process, parent) + t.consoleC <- t.recvtty(parent) }() } else { // the caller of runc will handle receiving the console master