]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
cgclear: Do not rmdir the mount point
authorDhaval Giani <dhaval@retis.sssup.it>
Fri, 12 Nov 2010 10:19:55 +0000 (11:19 +0100)
committerJan Safranek <jsafrane@redhat.com>
Mon, 15 Nov 2010 14:03:21 +0000 (15:03 +0100)
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 <dhaval.giani@gmail.com>
Tested-by: Ivana Hutarova Varekova <varekova@redhat.com>
Signed-off-by: Jan Safranek <jsafrane@redhat.com>
src/config.c

index c38b69ecc193cca5230d8af1ea2b95a24210d49d..513f95d835834a979afe9f3f430b89235408c415 100644 (file)
@@ -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);