Feature: bump gVisor to latest version (#376)

This commit is contained in:
Jason Lyu
2024-07-19 23:31:44 -04:00
committed by GitHub
parent 7555425ab8
commit dd791e50c1
11 changed files with 40 additions and 68 deletions

View File

@@ -1,4 +1,4 @@
//go:build !windows
//go:build unix
package fdbased
@@ -40,8 +40,9 @@ func (f *FD) Name() string {
return strconv.Itoa(f.fd)
}
func (f *FD) Close() error {
return unix.Close(f.fd)
func (f *FD) Close() {
defer f.LinkEndpoint.Close()
_ = unix.Close(f.fd)
}
var _ device.Device = (*FD)(nil)