[CRIU] dump a process in the its own code

Pavel Emelyanov xemul at parallels.com
Mon Apr 29 07:50:15 EDT 2013


On 04/28/2013 09:53 AM, Chanho Park wrote:
> Hi all,
> 
>  
> 
> I have silly questions about crtools.
> 
> I want to call the crtools in the program context because we want to make a snapshot of the program for launching time.
> 
> During the program is initialized, the program can call the crtools following its own decision.
> 
> I think the program may know the best time to dump its context.
> 
>  
> 
> However, there is big problem due to process tree.
> 
> If the crtools is called by system() or fork()/exec() in the program, dump will be failed because the process tree
> 
> also contains crtools as a child process of the program.
> 
>  
> 
> Is there any pretty way to address this problem?

In the existing implementation, you can try to daemonize the crtools.

> Thanks
> 
>  
> 
> Best regards,
> 
> Chanho Park
> 
> 
> 
> _______________________________________________
> CRIU mailing list
> CRIU at openvz.org
> https://lists.openvz.org/mailman/listinfo/criu
> 




More information about the CRIU mailing list