tools/lxc_stop: use correct check

parent d76ae655
...@@ -205,8 +205,7 @@ int main(int argc, char *argv[]) ...@@ -205,8 +205,7 @@ int main(int argc, char *argv[])
/* reboot */ /* reboot */
if (my_args.reboot) { if (my_args.reboot) {
ret = c->reboot2(c, my_args.timeout); if (!c->reboot2(c, my_args.timeout))
if (ret < 0)
ret = EXIT_FAILURE; ret = EXIT_FAILURE;
else else
ret = EXIT_SUCCESS; ret = EXIT_SUCCESS;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment