mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Merge pull request #3824 from btw616:fix/issue-3823
PiperOrigin-RevId: 334721453
This commit is contained in:
@@ -348,10 +348,10 @@ func (e *SCMConnectedEndpoint) Init() error {
|
||||
func (e *SCMConnectedEndpoint) Release(ctx context.Context) {
|
||||
e.DecRef(func() {
|
||||
e.mu.Lock()
|
||||
fdnotifier.RemoveFD(int32(e.fd))
|
||||
if err := syscall.Close(e.fd); err != nil {
|
||||
log.Warningf("Failed to close host fd %d: %v", err)
|
||||
}
|
||||
fdnotifier.RemoveFD(int32(e.fd))
|
||||
e.destroyLocked()
|
||||
e.mu.Unlock()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user