From: dlezcano Date: Tue, 9 Dec 2008 09:43:15 +0000 (+0000) Subject: Enqueue cgroup value in the right order X-Git-Tag: lxc_0_5_1~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=94d12f0aadcf936035fd0c4d7309274bdec64f09;p=thirdparty%2Flxc.git Enqueue cgroup value in the right order From: Daniel Lezcano 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 --- diff --git a/src/lxc/lxc_config.c b/src/lxc/lxc_config.c index d3744a7f7..10361486d 100644 --- a/src/lxc/lxc_config.c +++ b/src/lxc/lxc_config.c @@ -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; }