[CRIU] [PATCH] remap: add a dead pid /proc remap

Tycho Andersen tycho.andersen at canonical.com
Fri Sep 5 07:48:19 PDT 2014


Hi Pavel,

On Fri, Sep 05, 2014 at 06:37:54PM +0400, Pavel Emelyanov wrote:
>
> Well, remap images are loaded like this:
> 
> restore_root_task
>  `- fork_with_pid
>      `- restore_task_with_children
>          `- /* current->parent == NULL branch */
>             root_prepare_shared()
>              `- collect_image() /* loop */
>                  `- remap_cinfo->collect_one_remap
> 
> At this point no other task has been forked, so we can
> just add the required items into root's children list. Can we?

Ah, right, I was thinking that fork_with_pid forked everything, but I
guess that happens for each process in create_children_and_session.
Sounds good, I can make the change.

Tycho


More information about the CRIU mailing list