mirror of
https://github.com/containers/podman.git
synced 2025-05-22 17:46:52 +08:00
vendor: bump c/common
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
6
vendor/github.com/containers/common/pkg/cgroups/systemd_linux.go
generated
vendored
6
vendor/github.com/containers/common/pkg/cgroups/systemd_linux.go
generated
vendored
@ -130,6 +130,12 @@ func systemdDestroyConn(path string, c *systemdDbus.Conn) error {
|
||||
ch := make(chan string)
|
||||
_, err := c.StopUnitContext(context.TODO(), name, "replace", ch)
|
||||
if err != nil {
|
||||
if dbe, ok := err.(dbus.Error); ok {
|
||||
if dbe.Name == "org.freedesktop.systemd1.NoSuchUnit" {
|
||||
// the unit was already removed
|
||||
return nil
|
||||
}
|
||||
}
|
||||
return err
|
||||
}
|
||||
<-ch
|
||||
|
Reference in New Issue
Block a user