tty: recvtty: rm process arg

It is not used since commit 00a0ecf554.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
Kir Kolyshkin
2021-11-29 19:38:57 -08:00
parent e63186351b
commit f3f4b6d155
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -99,7 +99,7 @@ func (t *tty) initHostConsole() error {
return nil 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) f, err := utils.RecvFd(socket)
if err != nil { if err != nil {
return err return err
+1 -1
View File
@@ -139,7 +139,7 @@ func setupIO(process *libcontainer.Process, rootuid, rootgid int, createTTY, det
t.postStart = append(t.postStart, parent, child) t.postStart = append(t.postStart, parent, child)
t.consoleC = make(chan error, 1) t.consoleC = make(chan error, 1)
go func() { go func() {
t.consoleC <- t.recvtty(process, parent) t.consoleC <- t.recvtty(parent)
}() }()
} else { } else {
// the caller of runc will handle receiving the console master // the caller of runc will handle receiving the console master