mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
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:
parent
3f97cfe876
commit
7aad7317b4
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue