[CRIU] [PATCH] page-xfer: receive information about presence of a parent from a page server

Pavel Emelyanov xemul at parallels.com
Fri Nov 7 03:45:16 PST 2014


> @@ -500,6 +514,14 @@ static int open_page_server_xfer(struct page_xfer *xfer, int fd_type, long id)
>  		return -1;
>  	}
>  
> +	if (read(xfer->sk, &has_parent, 1) != 1) {

This would hang on older page-servers.

> +		pr_perror("The page server doesn't answer");
> +		return -1;
> +	}
> +
> +	if (has_parent)
> +		xfer->parent = (void *) 1; /* This is required for generate_iovs() */
> +
>  	return 0;
>  }
>  
> 



More information about the CRIU mailing list