[CRIU] [RFC][PATCH 0/4] libcriu: Ability to restore processes as caller's children
Andrew Vagin
avagin at parallels.com
Sun Jun 22 23:58:23 PDT 2014
On Tue, Jun 17, 2014 at 09:05:05PM +0400, Pavel Emelyanov wrote:
> Hi
>
> Currently libcriu only works as a service client. I.e. -- when we restore
> from images using library the resulted tree becomes the child of init. This
> is because libcriu asks for service to restore with --restore-detached
> option.
>
> Here's the proposal of criu_restore_sub() call (better name is welcome)
> that restores from images w/o service and makes the restored tree become
> child of the caller process. Implementation details in patch #1.
>
> This can be used by LXC/Docker -- daemons can restore the containers using
> the library (another option is to restore containers with --exec-cmd post
> action). This also can be used with OpenMPI -- AFAIK there's the same
> problem (how to restore tasks "under" current) there.
Now, you can think how to restore a death signal (PR_SET_PDEATHSIG).
It's used by Docker.
>
> Thanks,
> Pavel
> _______________________________________________
> CRIU mailing list
> CRIU at openvz.org
> https://lists.openvz.org/mailman/listinfo/criu
More information about the CRIU
mailing list