[CRIU] [PATCH 5/8] lib: return -1, if unable to connect to socket

Andrew Vagin avagin at parallels.com
Wed Dec 4 02:09:42 PST 2013


On Wed, Dec 04, 2013 at 02:57:28PM +0400, Ruslan Kuprieiev wrote:
> 
> Signed-off-by: Ruslan Kuprieiev <kupruser at gmail.com>
> ---
>  lib/criu.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/lib/criu.c b/lib/criu.c
> index 19a39b0..75abe10 100644
> --- a/lib/criu.c
> +++ b/lib/criu.c
> @@ -87,6 +87,7 @@ static int criu_connect(void)
>  	if (ret < 0) {
>  		perror("Can't connect to socket");
>  		close(fd);
> +		return -1;

Why is it not merged in the third patch?
>  	}
>  
>  	return fd;
> -- 
> 1.8.1.2
> 
> _______________________________________________
> CRIU mailing list
> CRIU at openvz.org
> https://lists.openvz.org/mailman/listinfo/criu


More information about the CRIU mailing list