From f3f4b6d155296c81c8625007de70111baba6a54b Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Mon, 29 Nov 2021 19:38:57 -0800 Subject: [PATCH] tty: recvtty: rm process arg It is not used since commit 00a0ecf5542. Signed-off-by: Kir Kolyshkin --- tty.go | 2 +- utils_linux.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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