In case of mount failure in cgconfigparser run, try to unmount controllers and then retrying mount before going to error handling path.
This should fix alternate cgconfigparser failure when run manually and some cases of cgconfig start failure when residual cgroup mounts still exist. From: Raghavendra K T <raghavendra...@linux.vnet.ibm.com> Signed-off-by: Raghavendra K T <raghavendra...@linux.vnet.ibm.com> --- --- a/src/config.c 2011-08-04 16:20:40.000000000 +0530 +++ b/src/config.c 2011-07-28 12:07:26.000000000 +0530 @@ -775,13 +775,6 @@ int cgroup_config_load_config(const char } error = cgroup_config_mount_fs(); + /* + * Error may be because something already mounted. unmount and retry + */ + if (error) + cgroup_config_unmount_controllers(); + + error = cgroup_config_mount_fs(); if (error) goto err_mnt; ------------------------------------------------------------------------------ BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA The must-attend event for mobile developers. Connect with experts. Get tools for creating Super Apps. See the latest technologies. Sessions, hands-on labs, demos & much more. Register early & save! http://p.sf.net/sfu/rim-blackberry-1 _______________________________________________ Libcg-devel mailing list Libcg-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libcg-devel