Commit fd9f0aaa authored by Andrei Vagin's avatar Andrei Vagin

cgroup: print errors for umount and rmdir

CID 155804 (#1 of 1): Unchecked return value (CHECKED_RETURN)
2. check_return: Calling umount2 without checking return value (as is done elsewhere 8 out of 9 times).
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent 526f491a
......@@ -1163,8 +1163,10 @@ void fini_cgroup(void)
return;
close_service_fd(CGROUP_YARD);
umount2(cg_yard, MNT_DETACH);
rmdir(cg_yard);
if (umount2(cg_yard, MNT_DETACH))
pr_perror("Unable to umount %s", cg_yard);
if (rmdir(cg_yard))
pr_perror("Unable to remove %s", cg_yard);
xfree(cg_yard);
cg_yard = NULL;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment