mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-22 18:07:57 +00:00
Allow passing --leave_stopped by RPC.
Signed-off-by: Michał Mirosław <emmir@google.com>
This commit is contained in:
parent
4455444eeb
commit
0e88a91ff0
@ -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;
|
||||||
|
@ -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; */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user