Signed-off-by: Ruslan Kuprieiev <kupruser at gmail.com> --- lib/criu.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/criu.c b/lib/criu.c index ad419ba..9361061 100644 --- a/lib/criu.c +++ b/lib/criu.c @@ -448,6 +448,9 @@ again: } } + if ((*resp)->has_cr_errno) + saved_errno = (*resp)->cr_errno; + exit: return ret; } -- 1.9.3