mirror of
https://github.com/checkpoint-restore/criu
synced 2025-09-04 16:25:31 +00:00
lib: return -ECONNREFUSED as documented
Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com> Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
df6f80f48e
commit
acaca5f14a
@@ -414,7 +414,7 @@ static int send_req_and_recv_resp(CriuReq *req, CriuResp **resp)
|
|||||||
fd = criu_connect();
|
fd = criu_connect();
|
||||||
if (fd < 0) {
|
if (fd < 0) {
|
||||||
perror("Can't connect to criu");
|
perror("Can't connect to criu");
|
||||||
ret = ECONNREFUSED;
|
ret = -ECONNREFUSED;
|
||||||
} else {
|
} else {
|
||||||
ret = send_req_and_recv_resp_sk(fd, req, resp);
|
ret = send_req_and_recv_resp_sk(fd, req, resp);
|
||||||
close(fd);
|
close(fd);
|
||||||
|
Reference in New Issue
Block a user