]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
tools/lxc_stop: use correct check
authorChristian Brauner <christian.brauner@ubuntu.com>
Sat, 20 Oct 2018 09:48:06 +0000 (11:48 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Mon, 22 Oct 2018 14:48:37 +0000 (16:48 +0200)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/tools/lxc_stop.c

index 1267fd11e7ff3b323c80eb46c89c1bdfb4c81680..62ca465b8411d3f6189e9df25fb4b78016b2506d 100644 (file)
@@ -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;