Update containerd/console vendor for fix
Signed-off-by: Phil Estes <estesp@linux.vnet.ibm.com>
This commit is contained in:
parent
1809231003
commit
496836c092
@ -2,7 +2,7 @@ github.com/beorn7/perks 4c0e84591b9aa9e6dcfdf3e02011
|
|||||||
github.com/BurntSushi/toml 3012a1dbe2e4bd1391d42b32f0577cb7bbc7f005 # v0.3.1
|
github.com/BurntSushi/toml 3012a1dbe2e4bd1391d42b32f0577cb7bbc7f005 # v0.3.1
|
||||||
github.com/containerd/btrfs af5082808c833de0e79c1e72eea9fea239364877
|
github.com/containerd/btrfs af5082808c833de0e79c1e72eea9fea239364877
|
||||||
github.com/containerd/cgroups fada802a7909d430bd17126fd6e4bbf5716f2bcd
|
github.com/containerd/cgroups fada802a7909d430bd17126fd6e4bbf5716f2bcd
|
||||||
github.com/containerd/console 02ecf6a7291e65f4a361525245c2bea023dc2e0b
|
github.com/containerd/console 8375c3424e4d7b114e8a90a4a40c8e1b40d1d4e6
|
||||||
github.com/containerd/continuity f2a389ac0a02ce21c09edd7344677a601970f41c
|
github.com/containerd/continuity f2a389ac0a02ce21c09edd7344677a601970f41c
|
||||||
github.com/containerd/fifo bda0ff6ed73c67bfb5e62bc9c697f146b7fd7f13
|
github.com/containerd/fifo bda0ff6ed73c67bfb5e62bc9c697f146b7fd7f13
|
||||||
github.com/containerd/go-runc a5c2862aed5e6358b305b0e16bfce58e0549b1cd
|
github.com/containerd/go-runc a5c2862aed5e6358b305b0e16bfce58e0549b1cd
|
||||||
|
7
vendor/github.com/containerd/console/console_linux.go
generated
vendored
7
vendor/github.com/containerd/console/console_linux.go
generated
vendored
@ -58,6 +58,7 @@ type Epoller struct {
|
|||||||
efd int
|
efd int
|
||||||
mu sync.Mutex
|
mu sync.Mutex
|
||||||
fdMapping map[int]*EpollConsole
|
fdMapping map[int]*EpollConsole
|
||||||
|
closeOnce sync.Once
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewEpoller returns an instance of epoller with a valid epoll fd.
|
// NewEpoller returns an instance of epoller with a valid epoll fd.
|
||||||
@ -151,7 +152,11 @@ func (e *Epoller) getConsole(sysfd int) *EpollConsole {
|
|||||||
|
|
||||||
// Close closes the epoll fd
|
// Close closes the epoll fd
|
||||||
func (e *Epoller) Close() error {
|
func (e *Epoller) Close() error {
|
||||||
return unix.Close(e.efd)
|
closeErr := os.ErrClosed // default to "file already closed"
|
||||||
|
e.closeOnce.Do(func() {
|
||||||
|
closeErr = unix.Close(e.efd)
|
||||||
|
})
|
||||||
|
return closeErr
|
||||||
}
|
}
|
||||||
|
|
||||||
// EpollConsole acts like a console but registers its file descriptor with an
|
// EpollConsole acts like a console but registers its file descriptor with an
|
||||||
|
Loading…
Reference in New Issue
Block a user