[CRIU] [PATCH] service: fix bug, when criu reports success on dump fail

Pavel Emelyanov xemul at parallels.com
Wed Dec 18 09:18:13 PST 2013


On 12/18/2013 03:11 PM, Ruslan Kuprieiev wrote:
> cr_dump_tasks() may return not only -1 on fail.
> 
> Signed-off-by: Ruslan Kuprieiev <kupruser at gmail.com>
> ---
>  cr-service.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/cr-service.c b/cr-service.c
> index f1dbddb..2fa89a5 100644
> --- a/cr-service.c
> +++ b/cr-service.c
> @@ -175,7 +175,7 @@ static int dump_using_req(int sk, CriuOpts *req)
>  		goto exit;
>  	}
>  
> -	if (cr_dump_tasks(req->pid) == -1)
> +	if (cr_dump_tasks(req->pid))
>  		goto exit;
>  
>  	success = true;
> 

applied


More information about the CRIU mailing list