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

Tycho Andersen tycho.andersen at canonical.com
Tue Jul 29 10:06:46 PDT 2014


Signed-off-by: Tycho Andersen <tycho.andersen at canonical.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



More information about the CRIU mailing list