mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Plumbing context.Context to DecRef() and Release().
context is passed to DecRef() and Release() which is needed for SO_LINGER implementation. PiperOrigin-RevId: 324672584
This commit is contained in:
committed by
gVisor bot
parent
ef11bb936b
commit
b2ae7ea1bb
@@ -46,7 +46,7 @@ type fullFD struct {
|
||||
}
|
||||
|
||||
// Release implements vfs.FileDescriptionImpl.Release.
|
||||
func (fd *fullFD) Release() {
|
||||
func (fd *fullFD) Release(context.Context) {
|
||||
// noop
|
||||
}
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@ type nullFD struct {
|
||||
}
|
||||
|
||||
// Release implements vfs.FileDescriptionImpl.Release.
|
||||
func (fd *nullFD) Release() {
|
||||
func (fd *nullFD) Release(context.Context) {
|
||||
// noop
|
||||
}
|
||||
|
||||
|
||||
@@ -56,7 +56,7 @@ type randomFD struct {
|
||||
}
|
||||
|
||||
// Release implements vfs.FileDescriptionImpl.Release.
|
||||
func (fd *randomFD) Release() {
|
||||
func (fd *randomFD) Release(context.Context) {
|
||||
// noop
|
||||
}
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@ type zeroFD struct {
|
||||
}
|
||||
|
||||
// Release implements vfs.FileDescriptionImpl.Release.
|
||||
func (fd *zeroFD) Release() {
|
||||
func (fd *zeroFD) Release(context.Context) {
|
||||
// noop
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user