mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-25 21:40:45 +00:00
cgmanager: &existed for remove+create now returns -1 on failure
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
This commit is contained in:
parent
c3f0f139e1
commit
ecc357ca08
@ -137,7 +137,7 @@ void cgmanager_remove_cgroup(const char *controller, const char *path)
|
|||||||
if ( cgmanager_remove_sync(NULL, cgroup_manager, controller,
|
if ( cgmanager_remove_sync(NULL, cgroup_manager, controller,
|
||||||
path, CG_REMOVE_RECURSIVE, &existed) != 0)
|
path, CG_REMOVE_RECURSIVE, &existed) != 0)
|
||||||
ERROR("Error removing %s:%s", controller, path);
|
ERROR("Error removing %s:%s", controller, path);
|
||||||
if (!existed)
|
if (existed == -1)
|
||||||
INFO("cgroup removal attempt: %s:%s did not exist", controller, path);
|
INFO("cgroup removal attempt: %s:%s did not exist", controller, path);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -210,7 +210,7 @@ again:
|
|||||||
cleanup_cgroups(d, tmp);
|
cleanup_cgroups(d, tmp);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (existed)
|
if (existed == 1)
|
||||||
goto next;
|
goto next;
|
||||||
}
|
}
|
||||||
// success
|
// success
|
||||||
|
Loading…
Reference in New Issue
Block a user