]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
shut up freezer_state
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Thu, 16 Jan 2014 14:41:44 +0000 (08:41 -0600)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Thu, 16 Jan 2014 14:41:44 +0000 (08:41 -0600)
Not being able to get freezer state is perfectly valid - if the
container does not exist.  The old version of freezer_state
only reported an error on actually reading the cgroup file,
but not on not finding a cgroup file.  Leave it to the caller
to report the error if it is important, since we don't actually
know any useful info here anyway.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
src/lxc/cgroup.c

index c4022afbb22867608ca380c7991cb5f48b901437..8ea347d2704dd150c78ccb124d33fdab0f26e375 100644 (file)
@@ -2090,10 +2090,8 @@ int freeze_unfreeze(const char *name, int freeze, const char *lxcpath)
 lxc_state_t freezer_state(const char *name, const char *lxcpath)
 {
        char v[100];
-       if (lxc_cgroup_get("freezer.state", v, 100, name, lxcpath) < 0) {
-               ERROR("Failed to get freezer state for %s:%s", lxcpath, name);
+       if (lxc_cgroup_get("freezer.state", v, 100, name, lxcpath) < 0)
                return -1;
-       }
 
        if (v[strlen(v)-1] == '\n')
                v[strlen(v)-1] = '\0';