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: Daniel Lezcano <dlezcano@fr.ibm.com>
cgelem->value = strdup(value);
cglist->elem = cgelem;
- lxc_list_add(&lxc_conf->cgroup, cglist);
+ lxc_list_add_tail(&lxc_conf->cgroup, cglist);
return 0;
}