Commit 9adbbcce authored by Ruslan Kuprieiev's avatar Ruslan Kuprieiev Committed by Pavel Emelyanov

libcriu: criu_restore_child: don't forget to set errno

Signed-off-by: 's avatarRuslan Kuprieiev <rkuprieiev@cloudlinux.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 4c5b23e5
...@@ -1027,6 +1027,8 @@ int criu_local_restore_child(criu_opts *opts) ...@@ -1027,6 +1027,8 @@ int criu_local_restore_child(criu_opts *opts)
close(sks[1]); close(sks[1]);
saved_errno = 0;
req.type = CRIU_REQ_TYPE__RESTORE; req.type = CRIU_REQ_TYPE__RESTORE;
req.opts = opts->rpc; req.opts = opts->rpc;
...@@ -1043,6 +1045,7 @@ int criu_local_restore_child(criu_opts *opts) ...@@ -1043,6 +1045,7 @@ int criu_local_restore_child(criu_opts *opts)
criu_resp__free_unpacked(resp, NULL); criu_resp__free_unpacked(resp, NULL);
} }
errno = saved_errno;
out: out:
return ret; return ret;
......
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