[CRIU] [PATCH 1/3] dump: Introduce "post-dump" script action
Pavel Emelyanov
xemul at parallels.com
Tue Jul 16 06:46:29 EDT 2013
On 07/15/2013 05:21 PM, 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.
>
> https://bugzilla.openvz.org/show_bug.cgi?id=2583
>
> Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
> ---
> cr-dump.c | 26 +++++++++++++++++++++++---
> util.c | 2 ++
> 2 files changed, 25 insertions(+), 3 deletions(-)
>
> diff --git a/util.c b/util.c
> index 69ecf5d..74c14ac 100644
> --- a/util.c
> +++ b/util.c
> @@ -1,3 +1,5 @@
> +#define _XOPEN_SOURCE
> +
> #include <stdlib.h>
> #include <stdio.h>
> #include <stdarg.h>
Huh?
More information about the CRIU
mailing list