diff --git a/src/lxc/tools/lxc_stop.c b/src/lxc/tools/lxc_stop.c index 9d2ba6ed14..f133c99770 100644 --- a/src/lxc/tools/lxc_stop.c +++ b/src/lxc/tools/lxc_stop.c @@ -20,18 +20,18 @@ * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#include + +#define _GNU_SOURCE #include -#include +#include +#include #include +#include #include -#include "lxc.h" -#include "log.h" #include "arguments.h" -#include "commands.h" -#include "utils.h" +#include "tool_utils.h" #define OPT_NO_LOCK OPT_USAGE + 1 #define OPT_NO_KILL OPT_USAGE + 2 @@ -113,7 +113,6 @@ int main(int argc, char *argv[]) if (lxc_log_init(&log)) exit(ret); - lxc_log_options_no_override(); /* REMOVE IN LXC 3.0 */ setenv("LXC_UPDATE_CONFIG_FORMAT", "1", 0); @@ -155,13 +154,6 @@ int main(int argc, char *argv[]) exit(ret); } - /* shortcut - if locking is bogus, we should be able to kill - * containers at least */ - if (my_args.nolock) { - ret = lxc_cmd_stop(my_args.name, my_args.lxcpath[0]); - exit(ret); - } - c = lxc_container_new(my_args.name, my_args.lxcpath[0]); if (!c) { fprintf(stderr, "Error opening container\n");