[CRIU] [PATCH] ids: Don't forget to setup task state in write_img_inventory

Pavel Emelyanov xemul at parallels.com
Thu Mar 14 13:06:04 EDT 2013


On 03/14/2013 08:56 PM, Cyrill Gorcunov wrote:
> Current running task is always TASK_ALIVE, mark it this way.

What for? The crt thing doesn't go to any image.

> Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
> ---
>  image.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/image.c b/image.c
> index 2bea4ef..7a5e1d8 100644
> --- a/image.c
> +++ b/image.c
> @@ -71,6 +71,7 @@ int write_img_inventory(void)
>  	he.fdinfo_per_id = true;
>  	he.has_fdinfo_per_id = true;
>  
> +	crt.state = TASK_ALIVE;
>  	crt.pid.real = getpid();
>  	if (get_task_ids(&crt))
>  		return -1;
> 




More information about the CRIU mailing list