From e2d9a68eef9f4d468a2983ab500ea2ab25f00e86 Mon Sep 17 00:00:00 2001 From: Fabricio Voznika Date: Tue, 17 Nov 2020 14:45:39 -0800 Subject: Add support for TTY in multi-container Fixes #2714 PiperOrigin-RevId: 342950412 --- pkg/p9/client.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'pkg/p9') diff --git a/pkg/p9/client.go b/pkg/p9/client.go index 71e944c30..eadea390a 100644 --- a/pkg/p9/client.go +++ b/pkg/p9/client.go @@ -570,6 +570,8 @@ func (c *Client) Version() uint32 { func (c *Client) Close() { // unet.Socket.Shutdown() has no effect if unet.Socket.Close() has already // been called (by c.watch()). - c.socket.Shutdown() + if err := c.socket.Shutdown(); err != nil { + log.Warningf("Socket.Shutdown() failed (FD: %d): %v", c.socket.FD(), err) + } c.closedWg.Wait() } -- cgit v1.2.3