]> git.ipfire.org Git - thirdparty/lxc.git/commit
restore: Hoist handler to function level
authorTycho Andersen <tycho.andersen@canonical.com>
Wed, 8 Oct 2014 17:11:50 +0000 (12:11 -0500)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Wed, 8 Oct 2014 17:47:22 +0000 (12:47 -0500)
commitdbb51a4361d08a9b68b2dbfea2405b10c05823f9
treedf474a6dcb2fe3c91ca1c27373a36764c8ac2a7d
parent2566a145174d0e5e0cd5f0488e559945e791ed7d
restore: Hoist handler to function level

On Tue, Oct 07, 2014 at 07:33:07PM +0000, Tycho Andersen wrote:
> This commit is in preparation for the cgroups create work, since we will need
> the handler in both the parent and the child. This commit also re-works how
> errors are propagated to be less verbose.

Here is an updated version:

From 941623498a49551411ccf185146061f3f37d3a67 Mon Sep 17 00:00:00 2001
From: Tycho Andersen <tycho.andersen@canonical.com>
Date: Tue, 7 Oct 2014 19:13:51 +0000
Subject: [PATCH 1/2] restore: Hoist handler to function level

This commit is in preparation for the cgroups create work, since we will need
the handler in both the parent and the child. This commit also re-works how
errors are propagated to be less verbose.

v2: rename error to has_error, handle it correctly, and remove some diff noise

Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
src/lxc/lxccontainer.c