summaryrefslogtreecommitdiffhomepage
path: root/pkg/p9
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-11-17 23:01:28 +0000
committergVisor bot <gvisor-bot@google.com>2020-11-17 23:01:28 +0000
commitccc4fc176ceef3215731e02a1c32f7c8b7292803 (patch)
tree280fc97d28fe4da28246ae83b41b005ac447c4a6 /pkg/p9
parent557ece2c244d7fc1481adf96b609fb04da35aa79 (diff)
parente2d9a68eef9f4d468a2983ab500ea2ab25f00e86 (diff)
Merge release-20201109.0-61-ge2d9a68ee (automated)
Diffstat (limited to 'pkg/p9')
-rw-r--r--pkg/p9/client.go4
1 files changed, 3 insertions, 1 deletions
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()
}