[CRIU] [PATCH] actions: report pid in the post-dump notification

Pavel Emelyanov xemul at parallels.com
Mon Mar 30 03:24:55 PDT 2015


On 03/30/2015 12:54 PM, Andrey Vagin wrote:
> libcontainer saves PID in a state file.
> 
> Signed-off-by: Andrey Vagin <avagin at openvz.org>
> ---
>  cr-service.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/cr-service.c b/cr-service.c
> index 45db04b..0256764 100644
> --- a/cr-service.c
> +++ b/cr-service.c
> @@ -163,6 +163,7 @@ int send_criu_rpc_script(enum script_actions act, char *name, int fd)
>  
>  	switch (act) {
>  	case ACT_SETUP_NS:
> +	case ACT_POST_DUMP:

Post-dump?! Doesn't the caller know this pid already?

>  		/*
>  		 * FIXME pid is required only once on
>  		 * restore. Need some more sane way of
> 



More information about the CRIU mailing list