]> git.proxmox.com Git - mirror_lxc.git/commitdiff
Enqueue cgroup value in the right order
authordlezcano <dlezcano>
Tue, 9 Dec 2008 09:43:15 +0000 (09:43 +0000)
committerdlezcano <dlezcano>
Tue, 9 Dec 2008 09:43:15 +0000 (09:43 +0000)
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>
src/lxc/lxc_config.c

index d3744a7f77958d511397951fc37f00e1790db309..10361486d25069128b1c14abc91e2490bf6ddf77 100644 (file)
@@ -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;
 }