]> git.proxmox.com Git - mirror_lxc.git/commitdiff
Remove nsgroup link when destroying the container
authordlezcano <dlezcano>
Tue, 25 Nov 2008 12:50:20 +0000 (12:50 +0000)
committerdlezcano <dlezcano>
Tue, 25 Nov 2008 12:50:20 +0000 (12:50 +0000)
From: Daniel Lezcano <dlezcano@fr.ibm.com>

Remove nsgroup link when destroying the container

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
src/lxc/destroy.c

index 74584e41b381a36a9a8efd510a1053957e1a4a20..1834795eaf98bca7210c2b97042e2351d1612909 100644 (file)
@@ -67,6 +67,7 @@ int lxc_destroy(const char *name)
        
        snprintf(path, MAXPATHLEN, LXCPATH "/%s/init", name);
        unlink(path);
+       lxc_unlink_nsgroup(name);
 
        if (lxc_unconfigure(name)) {
                lxc_log_error("failed to cleanup %s", name);