]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
freezer: remove lxc_cmd_freeze() and lxc_cmd_unfreeze() calls
authorChristian Brauner <christian.brauner@ubuntu.com>
Tue, 2 Feb 2021 22:24:28 +0000 (23:24 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Tue, 2 Feb 2021 22:24:28 +0000 (23:24 +0100)
We're now handling them better.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/freezer.c

index ae4d70f62ba2b6163cb2e9148d66f32d8a6d6e2c..8bf1f5770b175980de7ab730e2f9ff3320eb9516 100644 (file)
@@ -73,10 +73,7 @@ int lxc_freeze(struct lxc_conf *conf, const char *name, const char *lxcpath)
        int ret;
 
        lxc_cmd_notify_state_listeners(name, lxcpath, FREEZING);
-       if (unified_cgroup_hierarchy() > 0)
-               ret = lxc_cmd_freeze(name, lxcpath, -1);
-       else
-               ret = do_freeze_thaw(true, conf, name, lxcpath);
+       ret = do_freeze_thaw(true, conf, name, lxcpath);
        lxc_cmd_notify_state_listeners(name, lxcpath, !ret ? FROZEN : RUNNING);
        return ret;
 }
@@ -86,10 +83,7 @@ int lxc_unfreeze(struct lxc_conf *conf, const char *name, const char *lxcpath)
        int ret;
 
        lxc_cmd_notify_state_listeners(name, lxcpath, THAWED);
-       if (unified_cgroup_hierarchy() > 0)
-               ret = lxc_cmd_unfreeze(name, lxcpath, -1);
-       else
-               ret = do_freeze_thaw(false, conf, name, lxcpath);
+       ret = do_freeze_thaw(false, conf, name, lxcpath);
        lxc_cmd_notify_state_listeners(name, lxcpath, !ret ? RUNNING : FROZEN);
        return ret;
 }