mirror of
https://github.com/systemd/systemd.git
synced 2024-12-23 21:35:11 +03:00
cgroup: if we couldn't remove a cgroup after killing evertyhing in it then it's fine
This commit is contained in:
parent
2f8cd170ae
commit
2db9ecac35
@ -298,7 +298,9 @@ int cg_kill_recursive(const char *controller, const char *path, int sig, bool ig
|
||||
|
||||
if (rem)
|
||||
if ((r = cg_rmdir(controller, path)) < 0) {
|
||||
if (ret >= 0 && r != -ENOENT)
|
||||
if (ret >= 0 &&
|
||||
r != -ENOENT &&
|
||||
r != -EBUSY)
|
||||
ret = r;
|
||||
}
|
||||
|
||||
@ -459,7 +461,9 @@ int cg_migrate_recursive(const char *controller, const char *from, const char *t
|
||||
|
||||
if (rem)
|
||||
if ((r = cg_rmdir(controller, from)) < 0) {
|
||||
if (ret >= 0 && r != -ENOENT)
|
||||
if (ret >= 0 &&
|
||||
r != -ENOENT &&
|
||||
r != -EBUSY)
|
||||
ret = r;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user