From 0cee8cfcbdc71a55f3995b44ebc103a7d1c1328e Mon Sep 17 00:00:00 2001 From: Dhaval Giani Date: Fri, 12 Nov 2010 11:19:55 +0100 Subject: [PATCH] cgclear: Do not rmdir the mount point This code is strictly not needed, and was originally only added only because cgconfigparser can mkdir the mountpoint. Doing it however caused a few bugs and had the possibility of changing the system state. So, let's not do it. Should also fix up https://bugzilla.redhat.com/show_bug.cgi?id=652583 Signed-off-by: Dhaval Giani Tested-by: Ivana Hutarova Varekova Signed-off-by: Jan Safranek --- src/config.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/config.c b/src/config.c index c38b69ec..513f95d8 100644 --- a/src/config.c +++ b/src/config.c @@ -752,12 +752,6 @@ static int cgroup_config_unload_controller(const struct cgroup_mount_point *moun goto out_error; } - error = rmdir(mount_info->path); - if (error) { - last_errno = errno; - ret = ECGOTHER; - } - out_error: if (cgroup) cgroup_free(&cgroup); -- 2.47.2