• Andrew Vagin's avatar
    seize: don't wory if a cgroup contains some extra tasks (v3) · 391efc9d
    Andrew Vagin authored
    A freezer cgroup can contain tasks which will be not dumped,
    criu unfreezes the group, so we need to freeze all extra
    task with ptrace like we do for target tasks.
    
    Currently we attache and send an interrupt signals to these tasks,
    but we don't call waitpid() for them, so then waitpid(-1, ...)
    returns these tasks where we don't expect to see them.
    
    v2: execute freezer_detach() only if opts.freeze_cgroup is set
        calculate extra tasks in a freezer cgroup correctly
    v3: s/frozen_processes/processes_to_wait/
    Signed-off-by: 's avatarAndrew Vagin <avagin@virtuozzo.com>
    Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
    391efc9d
ptrace.h 2.12 KB