[CRIU] [PATCH 1/3] libcriu: criu_restore_child: don't forget to set errno
Ruslan Kuprieiev
rkuprieiev at cloudlinux.com
Thu Jul 30 13:40:20 PDT 2015
Signed-off-by: Ruslan Kuprieiev <rkuprieiev at cloudlinux.com>
---
lib/criu.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lib/criu.c b/lib/criu.c
index 95bc2f6..79c6b31 100644
--- a/lib/criu.c
+++ b/lib/criu.c
@@ -1027,6 +1027,8 @@ int criu_local_restore_child(criu_opts *opts)
close(sks[1]);
+ saved_errno = 0;
+
req.type = CRIU_REQ_TYPE__RESTORE;
req.opts = opts->rpc;
@@ -1043,6 +1045,7 @@ int criu_local_restore_child(criu_opts *opts)
criu_resp__free_unpacked(resp, NULL);
}
+ errno = saved_errno;
out:
return ret;
--
1.8.3.1
More information about the CRIU
mailing list