Skip to content

Commit

Permalink
implement cgmanager_remove_cgroup
Browse files Browse the repository at this point in the history
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
  • Loading branch information
hallyn authored and stgraber committed Jan 16, 2014
1 parent d4ef7c5 commit 6873d6f
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/lxc/cgmanager.c
Expand Up @@ -130,10 +130,15 @@ struct cgm_data {
char *cgroup_path;
};

void cgmanager_remove_cgroup(const char *subsystem, const char *path)
#define CG_REMOVE_RECURSIVE 1
void cgmanager_remove_cgroup(const char *controller, const char *path)
{
// TODO implement
WARN("%s: not yet implemented", __func__);
int existed;
if ( cgmanager_remove_sync(NULL, cgroup_manager, controller,
path, CG_REMOVE_RECURSIVE, &existed) != 0)
ERROR("Error removing %s:%s", controller, path);
if (!existed)
INFO("cgroup removal attempt: %s:%s did not exist");
}

static void cgm_destroy(struct lxc_handler *handler)
Expand Down

0 comments on commit 6873d6f

Please sign in to comment.