]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
lxc_autostart: Update following shutdown() API change
authorStéphane Graber <stgraber@ubuntu.com>
Fri, 7 Feb 2014 15:23:35 +0000 (10:23 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Fri, 7 Feb 2014 15:51:45 +0000 (10:51 -0500)
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
src/lxc/lxc_autostart.c

index ed62294626c5c0bbb96e6e39c1444f78bc9f86df..cfb24d068b9e681ff9886431d46d877fb6e84633 100644 (file)
@@ -280,8 +280,11 @@ int main(int argc, char *argv[])
                                if (my_args.list)
                                        printf("%s\n", c->name);
                                else {
-                                       if (!c->shutdown(c, my_args.timeout))
-                                               fprintf(stderr, "Error shutting down container: %s\n", c->name);
+                                       if (!c->shutdown(c, my_args.timeout)) {
+                                               if (!c->stop(c)) {
+                                                       fprintf(stderr, "Error shutting down container: %s\n", c->name);
+                                               }
+                                       }
                                }
                        }
                }