Skip to content

Commit b64a362

Browse files
committed
pycriu: set RPC opts for CHECK
Co-developed-by: Andrii Herheliuk <[email protected]> Signed-off-by: Radostin Stoyanov <[email protected]>
1 parent ebf9b42 commit b64a362

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/pycriu/criu.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,8 @@ class criu:
204204
def __init__(self):
205205
self.use_binary('criu')
206206
self.opts = rpc.criu_opts()
207+
# req.SerializeToString requires images_dir_fd to be set
208+
self.opts.images_dir_fd = -1
207209
self.sk = None
208210

209211
def use_sk(self, sk_name):
@@ -265,6 +267,7 @@ def check(self):
265267
"""
266268
req = rpc.criu_req()
267269
req.type = rpc.CHECK
270+
req.opts.MergeFrom(self.opts)
268271

269272
resp = self._send_req_and_recv_resp(req)
270273

0 commit comments

Comments
 (0)