[CRIU] [PATCH 1/3] dump: Introduce "post-dump" script action

Cyrill Gorcunov gorcunov at gmail.com
Mon Jul 15 07:42:28 EDT 2013


On Mon, Jul 15, 2013 at 03:16:49PM +0400, Andrew Vagin wrote:
> On Mon, Jul 15, 2013 at 11:53:02AM +0400, Cyrill Gorcunov wrote:
> > 
> > This is usefull if one needs to do some final action before checkpoint
> > is complete. For example in case of online migration one may provide
> > a script which would check the restore procedure on remote note
> > ended without errors, thus the script returns zero code and criu
> > simply kills running instance of application.
> > 
> > In turn, if migration failed, the script can return nonzero code
> > and criu won't kill the application but continue its execution
> > instead.
> > 
> > There are two kind of non-zero code recognized:
> > 
> >  1) Code with value 32 tells criu to drop repair mode from
> >     tcp connections and continue execution of a program, but
> >     criu itself exits with zero code, iow like in case of
> >     successed checkpoint procedure
> 
> I don't like this. What is a use case for that? Can crtools returns the
> exit code of a post-dump script? In this case the user can handle this
> magic code.

After thinking some more I tend to agree. Letme check if I find some better
code. Thanks!


More information about the CRIU mailing list