diff --git a/src/lxc/start.c b/src/lxc/start.c index d43d58073..5092b51cf 100644 --- a/src/lxc/start.c +++ b/src/lxc/start.c @@ -451,9 +451,12 @@ static void lxc_fini(const char *name, struct lxc_handler *handler) void lxc_abort(const char *name, struct lxc_handler *handler) { + int ret, status; + lxc_set_state(name, handler, ABORTING); if (handler->pid > 0) kill(handler->pid, SIGKILL); + while ((ret = waitpid(-1, &status, 0)) > 0) ; } #include