Commit acaca5f1 authored by Tycho Andersen's avatar Tycho Andersen Committed by Pavel Emelyanov

lib: return -ECONNREFUSED as documented

Signed-off-by: 's avatarTycho Andersen <tycho.andersen@canonical.com>
Acked-by: 's avatarSerge E. Hallyn <serge.hallyn@ubuntu.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent df6f80f4
......@@ -414,7 +414,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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment