shutdowntest.c revision 1897e3bcd36af9f3fe6d3649910a9adb93e5e988
f052a448696b1246ee9fc36b7c727237aed56058Timo Sirainen * Copyright © 2012 Serge Hallyn <serge.hallyn@ubuntu.com>.
f052a448696b1246ee9fc36b7c727237aed56058Timo Sirainen * Copyright © 2012 Canonical Ltd.
f052a448696b1246ee9fc36b7c727237aed56058Timo Sirainen * This program is free software; you can redistribute it and/or modify
f052a448696b1246ee9fc36b7c727237aed56058Timo Sirainen * it under the terms of the GNU General Public License version 2, as
f052a448696b1246ee9fc36b7c727237aed56058Timo Sirainen * published by the Free Software Foundation.
f052a448696b1246ee9fc36b7c727237aed56058Timo Sirainen * This program is distributed in the hope that it will be useful,
f052a448696b1246ee9fc36b7c727237aed56058Timo Sirainen * but WITHOUT ANY WARRANTY; without even the implied warranty of
f052a448696b1246ee9fc36b7c727237aed56058Timo Sirainen * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
f052a448696b1246ee9fc36b7c727237aed56058Timo Sirainen * GNU General Public License for more details.
f052a448696b1246ee9fc36b7c727237aed56058Timo Sirainen * You should have received a copy of the GNU General Public License along
f052a448696b1246ee9fc36b7c727237aed56058Timo Sirainen * with this program; if not, write to the Free Software Foundation, Inc.,
f052a448696b1246ee9fc36b7c727237aed56058Timo Sirainen * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#include <stdlib.h>
#include <errno.h>
struct lxc_container *c;
goto out;
if (c->is_defined(c)) {
goto out;
goto out;
goto out;
if (!c->is_defined(c)) {
goto out;
c->want_daemonize(c);
goto out;
goto out;
if (!c->destroy(c)) {
goto out;
if (c->is_defined(c)) {
goto out;
ret = 0;
out: