X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=src%2Flxc%2Fdestroy.c;h=88a47f5306fc8fd8e29ae678fe2fe58ad8afca3c;hb=e2bcd7db5e53dc20a25293283ff7c9404b4d0e2c;hp=9eb206f61c51cf64448465cb5aa0405446e0463d;hpb=5841258071d756a14321b863e01e752f0a9b02d4;p=mirror_lxc.git diff --git a/src/lxc/destroy.c b/src/lxc/destroy.c index 9eb206f61..88a47f530 100644 --- a/src/lxc/destroy.c +++ b/src/lxc/destroy.c @@ -29,6 +29,7 @@ #include #include +#include "error.h" #include static int remove_lxc_directory(const char *dirname) @@ -47,13 +48,13 @@ static int remove_lxc_directory(const char *dirname) int lxc_destroy(const char *name) { - int ret = -1, lock; + int lock, ret = -LXC_ERROR_INTERNAL; char path[MAXPATHLEN]; lock = lxc_get_lock(name); if (!lock) { lxc_log_error("'%s' is busy", name); - goto out; + return -LXC_ERROR_BUSY; } if (lock < 0) {