Commit 94d12f0a by dlezcano

Enqueue cgroup value in the right order

From: Daniel Lezcano <dlezcano@fr.ibm.com> Use the list_add_tail function to add the elements at the end of the list so when the cgroup elements are setup, they will be stored in the file in the right order. Signed-off-by: 's avatarDaniel Lezcano <dlezcano@fr.ibm.com>
parent da9e3794
......@@ -451,7 +451,7 @@ static int config_cgroup(const char *key, char *value, struct lxc_conf *lxc_conf
cgelem->value = strdup(value);
cglist->elem = cgelem;
lxc_list_add(&lxc_conf->cgroup, cglist);
lxc_list_add_tail(&lxc_conf->cgroup, cglist);
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment