2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-22 09:58:09 +00:00

Allow passing --leave_stopped by RPC.

Signed-off-by: Michał Mirosław <emmir@google.com>
This commit is contained in:
Michał Mirosław 2022-09-16 11:01:48 +02:00 committed by Andrei Vagin
parent 4455444eeb
commit 0e88a91ff0
2 changed files with 4 additions and 0 deletions

View File

@ -428,6 +428,9 @@ static int setup_opts_from_req(int sk, CriuOpts *req)
if (req->has_leave_running && req->leave_running) if (req->has_leave_running && req->leave_running)
opts.final_state = TASK_ALIVE; opts.final_state = TASK_ALIVE;
if (req->has_leave_stopped && req->leave_stopped)
opts.final_state = TASK_STOPPED;
if (!req->has_pid) { if (!req->has_pid) {
req->has_pid = true; req->has_pid = true;
req->pid = ids.pid; req->pid = ids.pid;

View File

@ -140,6 +140,7 @@ message criu_opts {
optional bool mntns_compat_mode = 65; optional bool mntns_compat_mode = 65;
optional bool skip_file_rwx_check = 66; optional bool skip_file_rwx_check = 66;
optional bool unprivileged = 67; optional bool unprivileged = 67;
optional bool leave_stopped = 69;
/* optional bool check_mounts = 128; */ /* optional bool check_mounts = 128; */
} }