mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 06:15:24 +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();
|
||||
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);
|
||||
|
Reference in New Issue
Block a user