From 479c79dcc6033736e387e4cf14867b736029d672 Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Sat, 20 Oct 2018 11:48:06 +0200 Subject: [PATCH] tools/lxc_stop: use correct check Signed-off-by: Christian Brauner --- src/lxc/tools/lxc_stop.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lxc/tools/lxc_stop.c b/src/lxc/tools/lxc_stop.c index 1267fd11e..62ca465b8 100644 --- a/src/lxc/tools/lxc_stop.c +++ b/src/lxc/tools/lxc_stop.c @@ -205,8 +205,7 @@ int main(int argc, char *argv[]) /* reboot */ if (my_args.reboot) { - ret = c->reboot2(c, my_args.timeout); - if (ret < 0) + if (!c->reboot2(c, my_args.timeout)) ret = EXIT_FAILURE; else ret = EXIT_SUCCESS; -- 2.47.3