lib/pycriu: changing the default behavior to use the system binary

Use system-installed CRIU binary instead of a local file

Thanks to @avagin for suggesting this solution.

Co-authored-by: Andrei Vagin <avagin@gmail.com>
Signed-off-by: Andrii Herheliuk <andrii@herheliuk.com>
This commit is contained in:
Andrii Herheliuk 2025-10-22 21:51:28 +01:00 committed by Andrei Vagin
parent 3f97cfe876
commit 7aad7317b4

View file

@ -103,7 +103,7 @@ class _criu_comm_bin(_criu_comm):
os.close(2)
css[0].send(struct.pack('i', os.getpid()))
os.execv(self.comm,
os.execvp(self.comm,
[self.comm, 'swrk',
"%d" % css[0].fileno()])
os._exit(1)