mirror of
https://github.com/containers/podman.git
synced 2025-11-29 17:48:05 +08:00
Update module github.com/containers/psgo to v1.10.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This commit is contained in:
4
vendor/github.com/containers/psgo/internal/dev/tty.go
generated
vendored
4
vendor/github.com/containers/psgo/internal/dev/tty.go
generated
vendored
@@ -73,7 +73,7 @@ func TTYs() (*[]TTY, error) {
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
defer devDir.Close()
|
||||
defer devDir.Close() //nolint:errcheck
|
||||
|
||||
devices := []string{}
|
||||
devTTYs, err := devDir.Readdirnames(0)
|
||||
@@ -91,7 +91,7 @@ func TTYs() (*[]TTY, error) {
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
defer devPTSDir.Close()
|
||||
defer devPTSDir.Close() //nolint:errcheck
|
||||
|
||||
devPTSs, err := devPTSDir.Readdirnames(0)
|
||||
if err != nil {
|
||||
|
||||
1
vendor/github.com/containers/psgo/internal/host/host_nocgo.go
generated
vendored
1
vendor/github.com/containers/psgo/internal/host/host_nocgo.go
generated
vendored
@@ -1,5 +1,4 @@
|
||||
//go:build !cgo
|
||||
// +build !cgo
|
||||
|
||||
// Copyright 2018 psgo authors
|
||||
//
|
||||
|
||||
2
vendor/github.com/containers/psgo/internal/proc/ns.go
generated
vendored
2
vendor/github.com/containers/psgo/internal/proc/ns.go
generated
vendored
@@ -47,7 +47,7 @@ func ReadMappings(path string) ([]idtools.IDMap, error) {
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
defer file.Close()
|
||||
defer file.Close() //nolint:errcheck
|
||||
|
||||
var mappings []idtools.IDMap
|
||||
|
||||
|
||||
10
vendor/github.com/containers/psgo/internal/proc/pids.go
generated
vendored
10
vendor/github.com/containers/psgo/internal/proc/pids.go
generated
vendored
@@ -31,7 +31,7 @@ func GetPIDs() ([]string, error) {
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
defer procDir.Close()
|
||||
defer procDir.Close() //nolint:errcheck
|
||||
|
||||
// extract string slice of all directories in procDir
|
||||
pidDirs, err := procDir.Readdirnames(0)
|
||||
@@ -74,7 +74,7 @@ func getPIDsFromCgroupV1(pid string) ([]string, error) {
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
defer f.Close()
|
||||
defer f.Close() //nolint:errcheck
|
||||
|
||||
scanner := bufio.NewScanner(f)
|
||||
cgroupPath := ""
|
||||
@@ -109,7 +109,7 @@ func getPIDsFromCgroupV1(pid string) ([]string, error) {
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
defer f.Close()
|
||||
defer f.Close() //nolint:errcheck
|
||||
|
||||
pids := []string{}
|
||||
scanner = bufio.NewScanner(f)
|
||||
@@ -128,7 +128,7 @@ func getPIDsFromCgroupV2(pid string) ([]string, error) {
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
defer f.Close()
|
||||
defer f.Close() //nolint:errcheck
|
||||
|
||||
scanner := bufio.NewScanner(f)
|
||||
cgroupSlice := ""
|
||||
@@ -152,7 +152,7 @@ func getPIDsFromCgroupV2(pid string) ([]string, error) {
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
defer f.Close()
|
||||
defer f.Close() //nolint:errcheck
|
||||
|
||||
pids := []string{}
|
||||
scanner = bufio.NewScanner(f)
|
||||
|
||||
Reference in New Issue
Block a user