Currently when the cgclear stumbles upon a mount point which cannot be
removed it exits immediatelly. IMHO it should continue clearing the rest
and unmount as much as possible.
Signed-off-by: Jan Safranek <jsafrane@redhat.com>
Acked-by: Dhaval Giani <dhaval.giani@gmail.com>
}
error = cgroup_get_controller_begin(&ctrl_handle, &info);
-
-
if (error && error != ECGEOF) {
ret = error;
goto out_error;
if (!curr_path)
goto out_errno;
- ret = cgroup_config_unload_controller(&info);
-
- if (ret)
- goto out_error;
+ error = cgroup_config_unload_controller(&info);
+ if (error) {
+ /* remember the error and continue unloading
+ * the rest */
+ ret = error;
+ error = 0;
+ }
}
error = cgroup_get_controller_next(&ctrl_handle, &info);