From: Christian Brauner Date: Sat, 20 Oct 2018 09:48:06 +0000 (+0200) Subject: tools/lxc_stop: use correct check X-Git-Tag: lxc-3.1.0~29^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=489b0b2913ae464ca9f4bd50956910d316d20daf;p=thirdparty%2Flxc.git tools/lxc_stop: use correct check Signed-off-by: Christian Brauner --- 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;