From: Stéphane Graber Date: Fri, 7 Feb 2014 15:23:35 +0000 (-0500) Subject: lxc_autostart: Update following shutdown() API change X-Git-Tag: lxc-1.0.0.rc1~46 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8ac27509024c1347e4ad6cc079e92d160ae77f7;p=thirdparty%2Flxc.git lxc_autostart: Update following shutdown() API change Signed-off-by: Stéphane Graber Acked-by: Serge E. Hallyn --- diff --git a/src/lxc/lxc_autostart.c b/src/lxc/lxc_autostart.c index ed6229462..cfb24d068 100644 --- a/src/lxc/lxc_autostart.c +++ b/src/lxc/lxc_autostart.c @@ -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); + } + } } } }