[lxc-devel] [lxc/lxc] dc2593: c/r: use freezer to seize tasks

GitHub noreply at github.com
Sat Nov 7 04:24:34 UTC 2015


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: dc259399a453b68811a9c62fcf739b8e77e3fbe8
      https://github.com/lxc/lxc/commit/dc259399a453b68811a9c62fcf739b8e77e3fbe8
  Author: Tycho Andersen <tycho.andersen at canonical.com>
  Date:   2015-11-06 (Fri, 06 Nov 2015)

  Changed paths:
    M src/lxc/criu.c

  Log Message:
  -----------
  c/r: use freezer to seize tasks

Instead of relying on the old ptrace loop, we should instead put all the
tasks in the container into the freezer. This will stop them all at the
same time, preventing fork bombs from causing criu to infinite loop (and is
also simply a lot faster).

Note that this uses --freeze-cgroup which isn't in criu 1.7, so it should
only go into master.

Signed-off-by: Tycho Andersen <tycho.andersen at canonical.com>
Acked-by: Stéphane Graber <stgraber at ubuntu.com>




More information about the lxc-devel mailing list