mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-08 13:24:23 +00:00
cgfsng: improve loggin on monitor cgroup destroy
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
23e5c04580
commit
d5fc4dd406
@ -1175,8 +1175,10 @@ __cgfsng_ops static void cgfsng_monitor_destroy(struct cgroup_ops *ops,
|
|||||||
*chop = '\0';
|
*chop = '\0';
|
||||||
|
|
||||||
ret = mkdir_p(pivot_path, 0755);
|
ret = mkdir_p(pivot_path, 0755);
|
||||||
if (ret < 0 && errno != EEXIST)
|
if (ret < 0 && errno != EEXIST) {
|
||||||
|
SYSWARN("Failed to create cgroup \"%s\"\n", pivot_path);
|
||||||
goto next;
|
goto next;
|
||||||
|
}
|
||||||
|
|
||||||
if (chop)
|
if (chop)
|
||||||
*chop = '/';
|
*chop = '/';
|
||||||
@ -1185,8 +1187,10 @@ __cgfsng_ops static void cgfsng_monitor_destroy(struct cgroup_ops *ops,
|
|||||||
* cgroup.
|
* cgroup.
|
||||||
*/
|
*/
|
||||||
ret = lxc_write_to_file(pivot_path, pidstr, len, false, 0666);
|
ret = lxc_write_to_file(pivot_path, pidstr, len, false, 0666);
|
||||||
if (ret != 0)
|
if (ret != 0) {
|
||||||
|
SYSWARN("Failed to move monitor %s to \"%s\"\n", pidstr, pivot_path);
|
||||||
goto next;
|
goto next;
|
||||||
|
}
|
||||||
|
|
||||||
ret = recursive_destroy(h->monitor_full_path);
|
ret = recursive_destroy(h->monitor_full_path);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user