[CRIU] [PATCH 5/6] lib: return -ECONNREFUSED as documented

Serge Hallyn serge.hallyn at ubuntu.com
Tue Jul 29 15:07:30 PDT 2014


Quoting Tycho Andersen (tycho.andersen at canonical.com):
> Signed-off-by: Tycho Andersen <tycho.andersen at canonical.com>

Acked-by: Serge E. Hallyn <serge.hallyn at ubuntu.com>

> ---
>  lib/criu.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/lib/criu.c b/lib/criu.c
> index dbf35cd..1c26f9e 100644
> --- a/lib/criu.c
> +++ b/lib/criu.c
> @@ -435,7 +435,7 @@ static int send_req_and_recv_resp(CriuReq *req, CriuResp **resp)
>  	fd = criu_connect();
>  	if (fd < 0) {
>  		perror("Can't connect to criu");
> -		ret = ECONNREFUSED;
> +		ret = -ECONNREFUSED;
>  	} else {
>  		ret = send_req_and_recv_resp_sk(fd, req, resp);
>  		close(fd);
> -- 
> 1.9.1
> 
> _______________________________________________
> CRIU mailing list
> CRIU at openvz.org
> https://lists.openvz.org/mailman/listinfo/criu


More information about the CRIU mailing list