Add remote option to RPC

Submitted by Radostin Stoyanov on Feb. 12, 2018, 7:58 a.m.

Details

Reviewer None
Submitted Feb. 12, 2018, 7:58 a.m.
Last Updated March 9, 2018, 5:04 a.m.
Revision 3

Cover Letter

Chages since v1:
- Start image-{cache,proxy} as bg task rather than daemon and store their PID
- Kill image-{cache,proxy} and old process PID
- Kill the restored process using the new PID

Changes since v2:
- Added `criu_set_remote(bool remote)` to libcriu

Radostin Stoyanov (3):
  rpc: Add `remote` option
  test: Add rpc test for dump/restore with --remote
  libcriu: Add remote option for dump/restore

 criu/cr-service.c         | 13 ++++---
 images/rpc.proto          |  1 +
 lib/c/criu.c              | 12 +++++++
 lib/c/criu.h              |  2 ++
 test/others/rpc/remote.py | 86 +++++++++++++++++++++++++++++++++++++++++++++++
 test/others/rpc/run.sh    | 26 ++++++++++++++
 6 files changed, 135 insertions(+), 5 deletions(-)
 create mode 100644 test/others/rpc/remote.py
  

Revisions