[CRIU] [PATCH] py: Fix resp.errno access

Pavel Emelyanov xemul at virtuozzo.com
Mon Dec 12 10:49:42 PST 2016


There's no such field in resp, only cr_errno

Signed-off-by: Pavel Emelyanov <xemul at virtuozzo.com>

---

diff --git a/lib/py/criu.py b/lib/py/criu.py
index 0ae204a..8725758 100644
--- a/lib/py/criu.py
+++ b/lib/py/criu.py
@@ -277,6 +277,6 @@ class criu:
 		resp = self._send_req_and_recv_resp(req)
 
 		if not resp.success:
-			raise CRIUExceptionExternal(req.type, resp.type, resp.errno)
+			raise CRIUExceptionExternal(req.type, resp.type, resp.cr_errno)
 
 		return resp.restore


More information about the CRIU mailing list