mirror of
https://github.com/containers/podman.git
synced 2025-09-28 01:04:28 +08:00
Update containers/storage to v1.16.5
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
2
vendor/github.com/containers/storage/pkg/system/process_unix.go
generated
vendored
2
vendor/github.com/containers/storage/pkg/system/process_unix.go
generated
vendored
@ -20,5 +20,5 @@ func IsProcessAlive(pid int) bool {
|
||||
|
||||
// KillProcess force-stops a process.
|
||||
func KillProcess(pid int) {
|
||||
unix.Kill(pid, unix.SIGKILL)
|
||||
_ = unix.Kill(pid, unix.SIGKILL)
|
||||
}
|
||||
|
5
vendor/github.com/containers/storage/pkg/system/rm.go
generated
vendored
5
vendor/github.com/containers/storage/pkg/system/rm.go
generated
vendored
@ -7,6 +7,7 @@ import (
|
||||
|
||||
"github.com/containers/storage/pkg/mount"
|
||||
"github.com/pkg/errors"
|
||||
"github.com/sirupsen/logrus"
|
||||
)
|
||||
|
||||
// EnsureRemoveAll wraps `os.RemoveAll` to check for specific errors that can
|
||||
@ -29,7 +30,9 @@ func EnsureRemoveAll(dir string) error {
|
||||
maxRetry := 100
|
||||
|
||||
// Attempt to unmount anything beneath this dir first
|
||||
mount.RecursiveUnmount(dir)
|
||||
if err := mount.RecursiveUnmount(dir); err != nil {
|
||||
logrus.Debugf("RecusiveUnmount on %s failed: %v", dir, err)
|
||||
}
|
||||
|
||||
for {
|
||||
err := os.RemoveAll(dir)
|
||||
|
Reference in New Issue
Block a user