[CRIU] [PATCH] service: Send dump resp in case of dump failure

Andrew Vagin avagin at parallels.com
Fri Jan 10 04:13:55 PST 2014


Acked-by: Andrew Vagin <avagin at parallels.com>

On Fri, Jan 10, 2014 at 03:36:39PM +0400, Pavel Emelyanov wrote:
> Signed-off-by: Pavel Emelyanov <xemul at parallels.com>
> 
> ---
> 
> diff --git a/cr-service.c b/cr-service.c
> index ef199ef..decbd6c 100644
> --- a/cr-service.c
> +++ b/cr-service.c
> @@ -186,7 +186,7 @@ static int dump_using_req(int sk, CriuOpts *req)
>  
>  	success = true;
>  exit:
> -	if (req->leave_running  || !self_dump) {
> +	if (req->leave_running  || !self_dump || !success) {
>  		if (send_criu_dump_resp(sk, success, false) == -1) {
>  			pr_perror("Can't send response");
>  			success = false;
> _______________________________________________
> CRIU mailing list
> CRIU at openvz.org
> https://lists.openvz.org/mailman/listinfo/criu


More information about the CRIU mailing list